r106757 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106756‎ | r106757 | r106758 >
Date:04:36, 20 December 2011
Author:tstarling
Status:ok
Tags:
Comment:
Don't suppress warnings when attempting file creation for the second time, this masks important error messages
Modified paths:
  • /trunk/phase3/includes/filerepo/backend/lockmanager/FSLockManager.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/backend/lockmanager/FSLockManager.php
@@ -83,9 +83,7 @@
8484 wfRestoreWarnings();
8585 if ( !$handle ) { // lock dir missing?
8686 wfMkdirParents( $this->lockDir );
87 - wfSuppressWarnings();
8887 $handle = fopen( $this->getLockPath( $key ), 'a+' ); // try again
89 - wfRestoreWarnings();
9088 }
9189 if ( $handle ) {
9290 // Either a shared or exclusive lock

Status & tagging log