Merge "Use READ_NORMAL for User cache regenerations"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 9 Jun 2016 19:45:04 +0000 (19:45 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 9 Jun 2016 19:45:04 +0000 (19:45 +0000)
includes/user/User.php

index 5eef0c2..cc4c6d0 100644 (file)
@@ -477,7 +477,7 @@ class User implements IDBAccessObject {
                                $setOpts += Database::getCacheSetOptions( wfGetDB( DB_SLAVE ) );
                                wfDebug( "User: cache miss for user {$this->mId}\n" );
 
-                               $this->loadFromDatabase();
+                               $this->loadFromDatabase( self::READ_NORMAL );
                                $this->loadGroups();
                                $this->loadOptions();