Actually set the $res field via doQuery() in setVisibility
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 22 May 2015 23:31:06 +0000 (16:31 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 23 May 2015 17:58:09 +0000 (10:58 -0700)
* Otherwise, it is thrown away and redone on a slave

Change-Id: I1252fa5bc98d908cf289f4d93cbdd8d6d33828ea

includes/revisiondelete/RevDelList.php

index 7a3ddfe..1ce9691 100644 (file)
@@ -89,9 +89,10 @@ abstract class RevDelList extends RevisionListBase {
                $comment = $params['comment'];
                $perItemStatus = isset( $params['perItemStatus'] ) ? $params['perItemStatus'] : false;
 
-               $this->res = false;
+               // CAS-style checks are done on the _deleted fields so the select
+               // does not need to use FOR UPDATE nor be in the atomic section
                $dbw = wfGetDB( DB_MASTER );
-               $this->doQuery( $dbw );
+               $this->res = $this->doQuery( $dbw );
 
                $dbw->startAtomic( __METHOD__ );