r87082 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87081‎ | r87082 | r87083 >
Date:15:23, 28 April 2011
Author:platonides
Status:ok
Tags:
Comment:
MFT r86418 + RELEASE NOTES
Modified paths:
  • /branches/REL1_17/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_17/phase3/includes/BagOStuff.php (modified) (history)

Diff [purge]

Index: branches/REL1_17/phase3/includes/BagOStuff.php
@@ -377,7 +377,12 @@
378378 'keyname' => $key,
379379 'value' => $db->encodeBlob( $this->serialize( $newValue ) ),
380380 'exptime' => $row->exptime
381 - ), __METHOD__ );
 381+ ), __METHOD__, 'IGNORE' );
 382+
 383+ if ( $db->affectedRows() == 0 ) {
 384+ // Race condition. See bug 28611
 385+ $newValue = null;
 386+ }
382387 $db->commit();
383388 } catch ( DBQueryError $e ) {
384389 $this->handleWriteError( $e );
Property changes on: branches/REL1_17/phase3/includes/BagOStuff.php
___________________________________________________________________
Added: svn:mergeinfo
385390 Merged /branches/sqlite/includes/BagOStuff.php:r58211-58321
386391 Merged /trunk/phase3/includes/BagOStuff.php:r82474,82845,82847-82848,85752,86418
387392 Merged /branches/new-installer/phase3/includes/BagOStuff.php:r43664-66004
388393 Merged /branches/wmf-deployment/includes/BagOStuff.php:r53381
389394 Merged /branches/REL1_15/phase3/includes/BagOStuff.php:r51646
390395 Merged /trunk/phase3/includes/objectcache/SqlBagOStuff.php:r86418
Index: branches/REL1_17/phase3/RELEASE-NOTES
@@ -554,6 +554,7 @@
555555 * (bug 22606) don't send the "someone registred an account" message when setting email address
556556 (i.e. old one empty) in user preferences
557557 * (bug 26458) Section edit links appear on pages that user does not have right to edit
 558+* (bug 28611) Don't die in SqlBagOStuff::incr() if there's a race condition.
558559
559560 === API changes in 1.17 ===
560561 * BREAKING CHANGE: action=patrol now requires POST
Property changes on: branches/REL1_17/phase3/RELEASE-NOTES
___________________________________________________________________
Modified: svn:mergeinfo
561562 Merged /trunk/phase3/RELEASE-NOTES:r86418

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r86418(Bug 28611) Don't die in SqlBagOStuff::incr() if there's a race condition.platonides17:59, 19 April 2011

Status & tagging log