[FileBackend] Simplified code for handling "overwrite" parameter.
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 29 Oct 2012 23:56:43 +0000 (16:56 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 30 Oct 2012 00:13:02 +0000 (17:13 -0700)
commit9fd48446a13dd3e23f360dad3838269ffa7f73a4
tree342527e839132c8bb43f98fbb9c1d3a26b1b1538
parentbc65ee0829b6a5ef89221aa621695fc5e2d5c7f8
[FileBackend] Simplified code for handling "overwrite" parameter.

* Since doQuickOperations() implicitely sets "overwrite", and doOperations() handles it
  via FileOp, there is no reason to also have each backend double checking this parameter
  to handle it. The parameter is no implicit for all the *Internal() functions. This does
  not affect callers. It does reduce the amount of HEAD requests since 404s are not cached.

Change-Id: I7d827e16bc55fe5c7b9aa51ec0c6b2f7c0bb629e
includes/filebackend/FSFileBackend.php
includes/filebackend/FileBackendStore.php
includes/filebackend/SwiftFileBackend.php