From a578bd195bc54a5ea971e77f8c9bb225f4eec09d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 7 Oct 2014 14:15:57 -0700 Subject: [PATCH] Made LocalFileMoveBatch::addOlds use SH locks instead of EX ones Change-Id: I928f98deded6e71b4b1e63167ca8b565e39c6394 --- includes/filerepo/file/LocalFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1