Make UploadBase use TempFSFile to wrap the temporary file
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 2 Mar 2016 23:42:36 +0000 (15:42 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 7 Mar 2016 20:54:06 +0000 (20:54 +0000)
commitdcb5ec5cbf92b9a07f0776b9c194183a13400193
tree856b818896f732f4a8a0d200d6691ae5985f1271
parent51fb0db61b4a3a9b4ca3ccc39ef7144eca0b31fb
Make UploadBase use TempFSFile to wrap the temporary file

* The cleanupTempFile() method now only marks it as ready
  for unlinking when unreferenced.
* Pass TempFSFile down the FileRepo call chain so that it
  can build off a5d903860a and allow more fast async writes
  for secondary backends. Previously, the 'store' operation
  used on upload forced sync file change replication writes.
* Also fix bogus method call in LocalFile::publishTo().

Bug: T91869
Change-Id: I06caa6e5d8bdec9a7cae2b68cb02dd2e64b9ac74
includes/filerepo/FileRepo.php
includes/filerepo/LocalRepo.php
includes/filerepo/file/File.php
includes/filerepo/file/LocalFile.php
includes/upload/UploadBase.php
includes/upload/UploadFromChunks.php