08a8b3de61139ba02371afc8240ac85be0e8b17c |
|
28-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Modified map locking behavior to avoid deadlocks when rebuilding storage.
If both mailbox and map index need to be locked, the map index must now be
locked first. Mailbox syncing optimistically tries to first sync without
map locking, but if it sees expunges, it restarts with the map lock.
The map lock is held now slightly longer during sync than before, but it
shouldn't be noticeable.
--HG--
branch : HEAD |