Bail out on FileBackend operations if the initial stat calls failed
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 18 Apr 2014 18:34:39 +0000 (11:34 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 18 Apr 2014 19:41:23 +0000 (12:41 -0700)
commit2cfce9fd8d124db9720da1f34ffac7841e28b741
tree960726a8a1aab8205f1b13a9a41ba66dd040cb49
parentd99bda31e3bd3955ee020fa40914122043ad9b47
Bail out on FileBackend operations if the initial stat calls failed

* The preloadFileStat() call acts as a good canary for whether all
  affected servers are up. If anything failed in it, then it's not
  worth bothering to send the actual write requests.
* Also made FileBackend::preloadFileStat abstract while at it since
  the two subclasses implemented it and so should any others.
* Fixed a silly comment typo.

Change-Id: I5bd427f654aa4a9d6bfe4ed7566276e8ac520b30
includes/filebackend/FileBackend.php
includes/filebackend/FileBackendMultiWrite.php
includes/filebackend/FileBackendStore.php
includes/filerepo/FileRepo.php