Allow FSFile objects for src in FileBackend::do*Operations
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 27 Feb 2016 01:33:42 +0000 (17:33 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 2 Mar 2016 18:49:56 +0000 (18:49 +0000)
commita5d903860a14c0ca84fa2688f8cb0292a6fd1487
tree3cc6b334925a596b06fede4df9d8c1b284321db8
parentdcf70dfbcd7d58570e42d50368c430bbe67c2f36
Allow FSFile objects for src in FileBackend::do*Operations

Convenience aside, this lets multiwrite backends do async replication for
"store" operations safely, buy keeping a handle to the source file that
prevents it from getting prematurely deleted before the post-send writes
to the secondary backends can happen.

Bug: T91869
Change-Id: I1254de527c47835c35fed6e526b42953c1b2b2ca
includes/filebackend/FileBackend.php
includes/filebackend/FileBackendMultiWrite.php
includes/filerepo/FileRepo.php