Made LocalFileMoveBatch::addOlds use SH locks instead of EX ones
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 7 Oct 2014 21:15:57 +0000 (14:15 -0700)
committerOri.livneh <ori@wikimedia.org>
Thu, 9 Oct 2014 22:50:26 +0000 (22:50 +0000)
Change-Id: I928f98deded6e71b4b1e63167ca8b565e39c6394

includes/filerepo/file/LocalFile.php

index 8824b66..6ca19fe 100644 (file)
@@ -2797,7 +2797,7 @@ class LocalFileMoveBatch {
                        array( 'oi_archive_name', 'oi_deleted' ),
                        array( 'oi_name' => $this->oldName ),
                        __METHOD__,
-                       array( 'FOR UPDATE' ) // ignore snapshot
+                       array( 'LOCK IN SHARE MODE' ) // ignore snapshot
                );
 
                foreach ( $result as $row ) {