Merge "Fixed possible race condition in LocalFileMoveBatch"
This commit is contained in:
commit
6f38f78cdd
1 changed files with 2 additions and 1 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue