Reedy has uploaded a new change for review.

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

Change subject: We need a master to do write actions...
......................................................................

We need a master to do write actions...

Change-Id: I618d371cdf76d96370c65975db702ed2fef0579c
---
M maintenance/update_scratch_token_format.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OATHAuth 
refs/changes/00/311200/1

diff --git a/maintenance/update_scratch_token_format.php 
b/maintenance/update_scratch_token_format.php
index 1f35319..5457f5e 100644
--- a/maintenance/update_scratch_token_format.php
+++ b/maintenance/update_scratch_token_format.php
@@ -42,8 +42,8 @@
        }
 
        public function execute() {
-               $dbr = wfGetDB( DB_SLAVE );
-               if ( !OATHAuthHooks::schemaUpdateOldUsers( $dbr ) ) {
+               $dbw = $this->getDB( DB_MASTER );
+               if ( !OATHAuthHooks::schemaUpdateOldUsers( $dbw ) ) {
                        $this->error( "Failed to update scratch_token rows.\n", 
1);
                }
                $this->output( "Done.\n" );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I618d371cdf76d96370c65975db702ed2fef0579c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OATHAuth
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to