[FileRepo] Fixed file move data-loss race condition.
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 3 Jun 2012 08:49:29 +0000 (01:49 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 3 Jun 2012 08:49:35 +0000 (01:49 -0700)
commit04804e67d54e5da45c11ff43bc7d1a75f3882cda
tree1582b1b6957b82be7651269ed9aeecacc731b19a
parent873fab65d2113862b5a7ba67c9d9677d3f5ba4f6
[FileRepo] Fixed file move data-loss race condition.

* Update the DB before copying the files over.
  This fixes a serious regession from 395c5907ff6191afa263e557ce44164e032e15b6.

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