jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
BryanDavis: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I618d371cdf76d96370c65975db702ed2fef0579c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OATHAuth
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: CSteipp <[email protected]>
Gerrit-Reviewer: Dpatrick <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits