[FileRepo] Changed LocalFile locking to avoid breaking transactions.
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 20 Feb 2013 19:28:27 +0000 (11:28 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 20 Feb 2013 19:30:38 +0000 (11:30 -0800)
commit4c26684de5b7952317b40bf34df182c2dec6ea2a
treeccaf0c7d3630d1ca84d3b99c027402d2b83b7f33
parent89a222dd861917f6d34f5637a269322a22528d42
[FileRepo] Changed LocalFile locking to avoid breaking transactions.

* Only BEGIN on lock() if no trx was in progress.
  Likewise, only COMMIT in unlock() if the lock() call started a trx.
* This can avoid problems with commiting page update transactions
  prematurely, which could leave broken page stub rows. (bug 40178)

Change-Id: I9a0adb25ee107df9a6bf70c6103ddfb7f034be25
includes/filerepo/file/LocalFile.php