[FileRepo] Changed "publishBatch" to handle failure better.
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 30 Oct 2012 02:04:03 +0000 (19:04 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 31 Oct 2012 04:24:19 +0000 (04:24 +0000)
commit1e9fd0103734bb264ef517e3133690ef6a9a9c3e
treeb407f42f4e70ad2114fb1845d136c3438f5a95ae
parent24a6e8eab64839ba5b5a6954ee35b7f2b04f9f82
[FileRepo] Changed "publishBatch" to handle failure better.

* Instead of moving the current file to the archive name,
  and then storing the new one, copy the current file to the
  archive name and overwrite the new one. When and object store
  backend is used, this reduces the number of operations from
  COPY, DELETE, PUT to just COPY and PUT. This reduces the RTTs,
  chances for failures, and avoids the period of time where the
  file has no current version.
* Also removed the "force" option to make file changes more likely
  to be all or nothing.

Change-Id: I46fc5c5c1fda5b386958b57557942f500de9dc2c
includes/filerepo/FileRepo.php