dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
7b169b4
)
Merge "Avoid races on null revision insertion"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Mon, 25 Jan 2016 20:20:10 +0000
(20:20 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Mon, 25 Jan 2016 20:20:10 +0000
(20:20 +0000)
includes/Revision.php
patch
|
blob
|
history
diff --git
a/includes/Revision.php
b/includes/Revision.php
index
bce9781
..
f4f6dca
100644
(file)
--- a/
includes/Revision.php
+++ b/
includes/Revision.php
@@
-1639,8
+1639,10
@@
class Revision implements IDBAccessObject {
array(
'page_id' => $pageId,
'page_latest=rev_id',
- ),
- __METHOD__ );
+ ),
+ __METHOD__,
+ array( 'FOR UPDATE' ) // T51581
+ );
if ( $current ) {
if ( !$user ) {