Merge "Fixed possible race condition in LocalFileMoveBatch"

This commit is contained in:
jenkins-bot 2014-05-22 04:56:48 +00:00 committed by Gerrit Code Review
commit 6f38f78cdd

View file

@ -2771,7 +2771,8 @@ class LocalFileMoveBatch {
$result = $this->db->select( 'oldimage',
array( 'oi_archive_name', 'oi_deleted' ),
array( 'oi_name' => $this->oldName ),
__METHOD__
__METHOD__,
array( 'FOR UPDATE' ) // ignore snapshot
);
foreach ( $result as $row ) {