Fixed possible race condition in LocalFileMoveBatch
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 19 May 2014 22:18:01 +0000 (15:18 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 19 May 2014 22:18:05 +0000 (15:18 -0700)
commit51c173912a548b75c61b4072b2e8da308afb850e
tree18b61dfc6209042f49b260eb4ecc61ef03889009
parent8a70e9825fc65567a34e29e84b725dbf39c0b60d
Fixed possible race condition in LocalFileMoveBatch

* If a move is blocked by a re-upload and the TRX started outside of
  LocalFile::lock, then the move did not see the new row in the oldimage
  table and so it will not move that version of the file in storage. Use
  the latest DB data to avoid that.

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