From: Aaron Schulz Date: Tue, 7 Oct 2014 21:15:57 +0000 (-0700) Subject: Made LocalFileMoveBatch::addOlds use SH locks instead of EX ones X-Git-Tag: 1.31.0-rc.0~13644 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=a578bd195bc54a5ea971e77f8c9bb225f4eec09d;p=lhc%2Fweb%2Fwiklou.git Made LocalFileMoveBatch::addOlds use SH locks instead of EX ones Change-Id: I928f98deded6e71b4b1e63167ca8b565e39c6394 --- diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 8824b66961..6ca19fe1bf 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -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 ) {