Skip to content

Commit

Permalink
Merge pull request #101 from osnard/UseDB_PRIMARY
Browse files Browse the repository at this point in the history
Replace DB_MASTER with DB_PRIMARY
  • Loading branch information
Nikerabbit authored Sep 7, 2024
2 parents 4dd8b1f + 8f5a292 commit 5017ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PageContentLanguageDbModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function doUpdate( $expectedLanguageCode, $dbPageLanguage ) {
$title = $this->title;

if ( $connection === null ) {
$connection = wfGetDB( DB_MASTER );
$connection = wfGetDB( DB_PRIMARY );
}

$connection->onTransactionCommitOrIdle( function() use ( $connection, $expectedLanguageCode, $dbPageLanguage, $title ) {
Expand Down

0 comments on commit 5017ad5

Please sign in to comment.