Added concurrent HEAD request support for Swift
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 16 Jan 2014 00:46:01 +0000 (16:46 -0800)
committerOri.livneh <ori@wikimedia.org>
Thu, 20 Feb 2014 08:50:08 +0000 (08:50 +0000)
commit6b1a60a1caa605033a70ebb25831d2ddd071e73a
treedd76f70d92f4046fab4fc13e2438db14292fb677
parent03aba1aa0d8d9fde437b1dadb5a46759865c8667
Added concurrent HEAD request support for Swift

* This adds a new preloadFileStat() method to FileBackend.
* FileBackend::doOperations() makes use of this instead of primeFileCache().
  The later was mostly useless due to the 'latest' flag, which stat entries
  rarely had (and since they use add(), 'latest' ones do not override the
  non-'latest' ones).
* Simplified primeContainerCache/primeFileCache to no longer accept
  FileOp objects and made sure nothing passes those in anymore.

Change-Id: Iee3878cadd69c3a594c701c0aff81aab5f473de5
includes/filebackend/FileBackend.php
includes/filebackend/FileBackendMultiWrite.php
includes/filebackend/FileBackendStore.php
includes/filebackend/SwiftFileBackend.php