Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/233041

Change subject: Fixed IDE error in mergeViaLock()
......................................................................

Fixed IDE error in mergeViaLock()

Change-Id: I50b5a22bf353272ad6960181db07c2f4ec857f3c
---
M includes/libs/objectcache/BagOStuff.php
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/41/233041/1

diff --git a/includes/libs/objectcache/BagOStuff.php 
b/includes/libs/objectcache/BagOStuff.php
index d72e1a5..006acf3 100644
--- a/includes/libs/objectcache/BagOStuff.php
+++ b/includes/libs/objectcache/BagOStuff.php
@@ -200,10 +200,11 @@
 
                $this->clearLastError();
                $currentValue = $this->get( $key );
-               if ( !$this->getLastError() ) {
+               if ( $this->getLastError() ) {
+                       $success = false;
+               } else {
                        // Derive the new value from the old value
                        $value = call_user_func( $callback, $this, $key, 
$currentValue );
-
                        if ( $value === false ) {
                                $success = true; // do nothing
                        } else {

-- 
To view, visit https://gerrit.wikimedia.org/r/233041
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I50b5a22bf353272ad6960181db07c2f4ec857f3c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to