Speed up LocalFile locking behavior
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 31 Mar 2014 20:36:14 +0000 (13:36 -0700)
committerOri.livneh <ori@wikimedia.org>
Tue, 1 Apr 2014 09:27:38 +0000 (09:27 +0000)
commit3cc06f6d8c06ddddea43ceac17eebd6ef2368a08
tree61482581f2c15be4de896a78f0b2d736ad92ae71
parent6084fdcef23856f46f8c573cc3af0866ca54c8b1
Speed up LocalFile locking behavior

* Lowered the lock() timeout
* Wrap the destination DB write with memcached locks for move
  ops since it is easier to control that lock timeout than the
  DB lock timeouts.
* Cleanup locks in the destructor (e.g. on exceptions). Other
  process can pile up more if locks have to expire.

bug: 63058
Change-Id: I38b28d81ec96daa80ece2354db284a614289ba0b
includes/filerepo/file/LocalFile.php