xml dump maintenance scripts should use the 'dump' db group
authorAriel T. Glenn <ariel@wikimedia.org>
Tue, 22 Oct 2013 18:23:02 +0000 (21:23 +0300)
committerAriel T. Glenn <ariel@wikimedia.org>
Tue, 22 Oct 2013 18:23:02 +0000 (21:23 +0300)
Change-Id: I25476310e30fba92df1b7af6c4cf7db7a5775681

maintenance/backup.inc
maintenance/backupTextPass.inc

index 3dc94c8..64078b4 100644 (file)
@@ -276,7 +276,7 @@ class BackupDumper {
                }
 
                $this->lb = wfGetLBFactory()->newMainLB();
-               $db = $this->lb->getConnection( DB_SLAVE, 'backup' );
+               $db = $this->lb->getConnection( DB_SLAVE, 'dump' );
 
                // Discourage the server from disconnecting us if it takes a long time
                // to read out the big ol' batch query.
index c515c6f..8fdb958 100644 (file)
@@ -126,7 +126,7 @@ class TextPassDumper extends BackupDumper {
 
                // 2. The Connection, through the load balancer.
                try {
-                       $this->db = $this->lb->getConnection( DB_SLAVE, 'backup' );
+                       $this->db = $this->lb->getConnection( DB_SLAVE, 'dump' );
                } catch ( Exception $e ) {
                        throw new MWException( __METHOD__ . " rotating DB failed to obtain new database (" . $e->getMessage() . ")" );
                }