aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/initEditCount.php
diff options
context:
space:
mode:
authorAaron Schulz <aschulz@wikimedia.org>2016-09-05 12:55:19 -0700
committerKunal Mehta <legoktm@member.fsf.org>2016-09-05 22:55:53 -0700
commit950cf6016c10953213e5f985dfc18a32d8673197 (patch)
tree0af7d5c396ae823ee813b7de1cad344e71ecbb9c /maintenance/initEditCount.php
parentbdacaaca42282f674ded32508e4c2587caa721fb (diff)
downloadmediawikicore-950cf6016c10953213e5f985dfc18a32d8673197.tar.gz
mediawikicore-950cf6016c10953213e5f985dfc18a32d8673197.zip
Rename DB_SLAVE constant to DB_REPLICA
This is more consistent with LoadBalancer, modern, and inclusive of master/master mysql, NDB cluster, and MariaDB galera cluster. The old constant is an alias now. Change-Id: I0b37299ecb439cc446ffbe8c341365d1eef45849
Diffstat (limited to 'maintenance/initEditCount.php')
-rw-r--r--maintenance/initEditCount.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintenance/initEditCount.php b/maintenance/initEditCount.php
index a19ad9b2cfac..6b06da781e89 100644
--- a/maintenance/initEditCount.php
+++ b/maintenance/initEditCount.php
@@ -56,7 +56,7 @@ in the load balancer, usually indicating a replication environment.' );
if ( $backgroundMode ) {
$this->output( "Using replication-friendly background mode...\n" );
- $dbr = $this->getDB( DB_SLAVE );
+ $dbr = $this->getDB( DB_REPLICA );
$chunkSize = 100;
$lastUser = $dbr->selectField( 'user', 'MAX(user_id)', '', __METHOD__ );