swift/swift/account
David Goetz 849b21a442 Combine acc/cont put_* methods and fix their lock problem.
The container backend is supposed to build a pending file and,
when it gets to a certain size, flush it all at once into the
sqlite db. Before this fix, many concurrent threads would ask
what the pending file size is to see if they should flush
instead of just appending to the pending file. The problem is
that many would ask, find it's too big, and try to get a lock.
The first one wins, flushes, but all the other waiting threads
still think they have to flush- which is a much slower opertaion
than just the append. This change gets the lock first and makes
sure that merge_items is only called when the pending file is full.

Change-Id: I29cfa13a48c8f7d16dd414b2288d50461adbafd2
2014-08-29 11:43:00 -07:00
..
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
auditor.py Increase Account Auditor Test Code Coverage 2014-07-04 09:48:25 -07:00
backend.py Combine acc/cont put_* methods and fix their lock problem. 2014-08-29 11:43:00 -07:00
reaper.py Replace POLICY and POLICY_INDEX with string literals 2014-06-23 12:52:50 -07:00
replicator.py Relocate DATADIR to backends 2014-04-01 23:22:22 -06:00
server.py Replace POLICY and POLICY_INDEX with string literals 2014-06-23 12:52:50 -07:00
utils.py Add two vector timestamps 2014-06-19 10:18:06 -07:00