Follow-up r108185: removed now unused ALLOW_STALE param
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 16 Jan 2012 22:54:22 +0000 (22:54 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 16 Jan 2012 22:54:22 +0000 (22:54 +0000)
includes/filerepo/FileRepo.php

index c770811..78109b6 100644 (file)
@@ -18,7 +18,6 @@ class FileRepo {
        const OVERWRITE = 2;
        const OVERWRITE_SAME = 4;
        const SKIP_LOCKING = 8;
-       const ALLOW_STALE = 16;
 
        /** @var FileBackendBase */
        protected $backend;
@@ -617,7 +616,6 @@ class FileRepo {
         *     self::OVERWRITE_SAME    Overwrite the file if the destination exists and has the
         *                             same contents as the source
         *     self::SKIP_LOCKING      Skip any file locking when doing the store
-        *     self::ALLOW_STALE       Don't require latest data for existence checks
         * @return FileRepoStatus
         */
        public function store( $srcPath, $dstZone, $dstRel, $flags = 0 ) {
@@ -699,9 +697,6 @@ class FileRepo {
                if ( $flags & self::SKIP_LOCKING ) {
                        $opts['nonLocking'] = true;
                }
-               if ( $flags & self::ALLOW_STALE ) {
-                       $opts['allowStale'] = true;
-               }
                $status->merge( $backend->doOperations( $operations, $opts ) );
                // Cleanup for disk source files...
                foreach ( $sourceFSFilesToDelete as $file ) {