Reduced max TempFSFile::factory() attempts since it uses 12 hex chars.
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 9 Sep 2012 00:10:12 +0000 (17:10 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 9 Sep 2012 00:10:12 +0000 (17:10 -0700)
Change-Id: I93dd53f391e74b953c89b4225ab691850ccc66ef

includes/filebackend/TempFSFile.php

index b738898..5032bf6 100644 (file)
@@ -54,7 +54,7 @@ class TempFSFile extends FSFile {
                                fclose( $newFileHandle );
                                break; // got it
                        }
-                       if ( $attempt >= 15 ) {
+                       if ( $attempt >= 5 ) {
                                wfProfileOut( __METHOD__ );
                                return null; // give up
                        }