Fix and make file moving better resilient against errors by first copying the files...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 4 Mar 2011 21:57:23 +0000 (21:57 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 4 Mar 2011 21:57:23 +0000 (21:57 +0000)
commit395c5907ff6191afa263e557ce44164e032e15b6
tree2403f563a08aea0361f951049cb4c04e0e879d64
parent0c99ecc6f2bda2ba9b7b74e5d1e248a5ad0b4b9d
Fix and make file moving better resilient against errors by first copying the files, then doing the db updates and finally cleaning up the source.
* FsRepo::cleanupBatch now accepts either pairs, virtual urls and real paths
* Add missing begin() and commit() to LocalFileMoveBatch
* Actually set an error after incrementing failCount because otherwise the status is still good
* Changed some isOk() to isGood() and set ->ok explicitly to false after rollback
includes/filerepo/FSRepo.php
includes/filerepo/LocalFile.php