Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorNoWhereMan
    • CommentTimeAug 16th 2010 edited
     permalink
    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!
    •  
      CommentAuthorStanley
    • CommentTimeAug 16th 2010
     permalink
    Thanks! I'll take a look at it.
    •  
      CommentAuthorpierovdfn
    • CommentTimeAug 16th 2010
     permalink
    Thanks!
    When I can, I'll do some tests!