Whitespace. Add $wgDBname to the debug message.
authorPlatonides <platonides@users.mediawiki.org>
Sat, 25 Dec 2010 21:58:50 +0000 (21:58 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 25 Dec 2010 21:58:50 +0000 (21:58 +0000)
maintenance/purgeStaleMemcachedText.php

index c051b3e..f183b5e 100644 (file)
@@ -3,15 +3,15 @@
 require_once( dirname( __FILE__ ) . '/commandLine.inc' );
 
 function purgeStaleMemcachedText() {
-       global $wgMemc;
+       global $wgMemc, $wgDBname;
        $db = wfGetDB( DB_MASTER );
        $maxTextId = $db->selectField( 'text', 'max(old_id)' );
-       $latestReplicatedTextId = $db->selectField( array( 'revision','recentchanges'), 'rev_text_id', 
+       $latestReplicatedTextId = $db->selectField( array( 'recentchanges', 'revision' ), 'rev_text_id', 
                array( 'rev_id = rc_this_oldid', "rc_timestamp < '20101225183000'"),  'purgeStaleMemcachedText', 
                array( 'ORDER BY' => 'rc_timestamp DESC' ) );
        $latestReplicatedTextId -= 100; # A bit of paranoia
 
-       echo "Going to purge text entries from $latestReplicatedTextId to $maxTextId\n";
+       echo "Going to purge text entries from $latestReplicatedTextId to $maxTextId in $wgDBname\n";
 
        for ( $i = $latestReplicatedTextId; $i < $maxTextId; $i++ ) {
                $key = wfMemcKey( 'revisiontext', 'textid', $i++ );