ℹ️
Welcome to the archive of the old FlatPress support forum. Browse more than a decade of FlatPress wisdom! Login is disabled.

The current FlatPress support forum is available here: forum.flatpress.org
Experimental feature in SVN: locking on index!
  • So, since this "doing-multiuser-even-if-I-don't-want-you-people-to-do-multiuser" is becoming rather popular I've decided to put together a very base locking mechanism in SVN.

    For those of you interested in the details

    it is an exclusive lock on the whole system index, which means one write at a time per entry; even though the system index is split over several files (one for main, one for each category, and one for the title cache), which would allow for a higher degree of concurrency, you have to remember I am very lazy :P So the lock is global over the whole index.

    What does this mean for you

    Your index won't probably become corruputed as often as before: when a concurrent access attempts to get a write lock on the index, and the index is being written by someone else, FlatPress will refuse to modify it; but this does not mean you will lose your work! your entry will still be saved as a draft, so you'll be able to try and save it again, which will eventually succeed, unless another lock has been acquired by someone else in the meantime.

    Caveats

    if you are the admin of the system and you are sure that nobody except you is trying to post something, and still you can't post your entry regularly, then the lock file might have erroneously been kept after the last write: in this case you can delete it manually, you can find it in : fp-content/cache/bpt.lock (bpt stands for B Plus Tree, the underlying data structure). Have fun with testing!
  • Thanks! I'll take a look at it.
  • Thanks! When I can, I'll do some tests!
This discussion has been closed.
All Discussions
Start a New Discussion

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion