diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2016-09-05 12:55:19 -0700 |
---|---|---|
committer | Kunal Mehta <legoktm@member.fsf.org> | 2016-09-05 22:55:53 -0700 |
commit | 950cf6016c10953213e5f985dfc18a32d8673197 (patch) | |
tree | 0af7d5c396ae823ee813b7de1cad344e71ecbb9c /maintenance/rebuildall.php | |
parent | bdacaaca42282f674ded32508e4c2587caa721fb (diff) | |
download | mediawikicore-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.php | 2 |
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' ); |