From 04e08a623cc4dfc118f9f099a41647a4860633f3 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sun, 12 Dec 2010 15:29:47 +0000 Subject: [PATCH] Per CR on r71359: Fix DB_MASTER where it should be __METHOD__ --- maintenance/convertLinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php index 3493d45f2b..d4c8cc26ff 100644 --- a/maintenance/convertLinks.php +++ b/maintenance/convertLinks.php @@ -193,12 +193,12 @@ This gives a huge speed improvement for very large links tables which are MyISAM if ( $overwriteLinksTable ) { # Check for existing links_backup, and delete it if it exists. $this->output( "Dropping backup links table if it exists..." ); - $dbw->query( "DROP TABLE IF EXISTS $links_backup", DB_MASTER ); + $dbw->query( "DROP TABLE IF EXISTS $links_backup", __METHOD__ ); $this->output( " done.\n" ); # Swap in the new table, and move old links table to links_backup $this->output( "Swapping tables '$links' to '$links_backup'; '$links_temp' to '$links'..." ); - $dbw->query( "RENAME TABLE links TO $links_backup, $links_temp TO $links", DB_MASTER ); + $dbw->query( "RENAME TABLE links TO $links_backup, $links_temp TO $links", __METHOD__ ); $this->output( " done.\n\n" ); $dbw->close(); -- 2.20.1