aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/rebuildall.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/rebuildall.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/rebuildall.php')
-rw-r--r--maintenance/rebuildall.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php
index d2ee6fc2ad91..95822ca26938 100644
--- a/maintenance/rebuildall.php
+++ b/maintenance/rebuildall.php
@@ -41,7 +41,7 @@ class RebuildAll extends Maintenance {
public function execute() {
// Rebuild the text index
- if ( $this->getDB( DB_SLAVE )->getType() != 'postgres' ) {
+ if ( $this->getDB( DB_REPLICA )->getType() != 'postgres' ) {
$this->output( "** Rebuilding fulltext search index (if you abort "
. "this will break searching; run this script again to fix):\n" );
$rebuildText = $this->runChild( 'RebuildTextIndex', 'rebuildtextindex.php' );