Merge "Delete maintenance/language/zhtable/trad2simp_supp_unset.manual"
[lhc/web/wiklou.git] / maintenance / backupTextPass.inc
index 7aac4d4..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() . ")" );
                }
@@ -484,7 +484,12 @@ class TextPassDumper extends BackupDumper {
 
                                $revLength = strlen( $text );
                                if ( $wgContentHandlerUseDB ) {
-                                       $row  = $this->db->selectRow( 'revision', array( 'rev_len', 'rev_content_model' ), array( 'rev_id' => $revID ), __METHOD__ );
+                                       $row = $this->db->selectRow(
+                                               'revision',
+                                               array( 'rev_len', 'rev_content_model' ),
+                                               array( 'rev_id' => $revID ),
+                                               __METHOD__
+                                       );
                                        if ( $row ) {
                                                // only check the length for the wikitext content handler,
                                                // it's a wasted (and failed) check otherwise