https://bugzilla.wikimedia.org/show_bug.cgi?id=43688

       Web browser: ---
            Bug ID: 43688
           Summary: mcc.php doesn't work with new WMF memcached config
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Maintenance scripts
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

mcc.php uses $wgMemCachedServers only:

$mcc = new MWMemcached( array( 'persistent' => true/*, 'debug' => true*/ ) );
$mcc->set_servers( $wgMemCachedServers );

Which doesn't work with the current WMF config for memcached:

reedy@fenari:/home/wikipedia/common$ mwscript eval.php enwiki
> var_dump( $wgMemCachedServers );
array(1) {
  [0]=>
  string(15) "127.0.0.1:11000"
}

>
reedy@fenari:/home/wikipedia/common$ mwscript mcc.php commonswiki
> server
127.0.0.1:11000


I guess it should depend on $wgMainCacheType. If it is CACHE_MEMCACHED use
$wgMemCachedServers. If it's a string, use
$wgObjectCaches[$wgMainCacheType]['servers']

Also, should this be classed as a WMF only script? If so, it should probably be
moved to the WikimediaMaintenance extension.


Logging as a TODO/reminder. I might get round to fixing this before anyone
else, but I'm not planning on fixing it now

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to