-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use DB_MASTER when using query() to avoid error
This appears to be a more recent change, that query() causes the following error when used along with DB_REPLICA: Wikimedia\Rdbms\DBReadOnlyRoleError from line 1195 of $MW_INSTALL_PATH/includes/libs/rdbms/database/Database.php: Cannot write; target role is DB_REPLICA While WatchAnalytics was not using query() to write to the database, it is possible to use query() that way, so it makes sense for MW to be more strict with its usage.
- Loading branch information
1 parent
7cf5c17
commit 15da667
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters