Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r17881: use the stats method of the PP module be...

Committer: ailyin
use the stats method of the PP module because the XS one doesn't provide it
U   trunk/htdocs/admin/memcache.bml
Modified: trunk/htdocs/admin/memcache.bml
===================================================================
--- trunk/htdocs/admin/memcache.bml	2010-12-08 08:44:09 UTC (rev 17880)
+++ trunk/htdocs/admin/memcache.bml	2010-12-08 08:54:10 UTC (rev 17881)
@@ -143,7 +143,7 @@
         my ( $tot_hits, $tot_misses ) = qw(0 0);
 
         foreach my $host ( sort keys %$connections ) {
-            my $conn        = $connections->{$host};
+            my $conn = LJ::MemCache::PP->new({ 'servers' => [ $host ] });
 
             my $t1          = Time::HiRes::time();
             my $stats       = $conn->stats->{'hosts'}->{$host}->{'misc'};
@@ -221,7 +221,7 @@
         );
     } elsif ( $mode eq 'host' ) {
         my $host = $GET{'host'};
-        my $conn = $connections->{$host};
+        my $conn = LJ::MemCache::PP->new({ 'servers' => [ $host ] });
 
         die "invalid server $host"
             unless $host and $conn;

Tags: andy, bml, livejournal
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments