File Locking in Cyrus IMAP

In order to guard against deadlocks, we want to maintain the same order of acquiring locks throughout the system (this may be violated in one or two places, but when it is it is commented as to why it is safe). As long as everyone plays by these rules, we can avoid deadlock.

In an ideal world, our locking order is:

  • cyrus.header
  • cyrus.index
  • quota
  • seen
  • mailboxes file

These try to go from least general to most general, so we hold the largest locks for the shortest period of time.

-- RobSiemborski? - 06 Aug 2003

Topic revision: r26 - 31 Aug 2005 - 11:03:59 - TWikiGuest
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback