https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112538
Revision: 112538
Author: aaron
Date: 2012-02-27 23:00:32 +0000 (Mon, 27 Feb 2012)
Log Message:
-----------
Dummy proof TempFSFile purging when the constructor is used directly to avoid
data loss.
Modified Paths:
--------------
trunk/phase3/includes/filerepo/backend/TempFSFile.php
Modified: trunk/phase3/includes/filerepo/backend/TempFSFile.php
===================================================================
--- trunk/phase3/includes/filerepo/backend/TempFSFile.php 2012-02-27
22:50:15 UTC (rev 112537)
+++ trunk/phase3/includes/filerepo/backend/TempFSFile.php 2012-02-27
23:00:32 UTC (rev 112538)
@@ -11,7 +11,7 @@
* @ingroup FileBackend
*/
class TempFSFile extends FSFile {
- protected $canDelete = true; // garbage collect the temp file
+ protected $canDelete = false; // bool; garbage collect the temp file
/** @var Array of active temp files to purge on shutdown */
protected static $instances = array();
@@ -41,6 +41,7 @@
}
}
$tmpFile = new self( $path );
+ $tmpFile->canDelete = true; // safely instantiated
return $tmpFile;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs