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

[livejournal] r21336: fix this one following the changes in r1...

Committer: ailyin
fix this one following the changes in r17874
U   trunk/htdocs/admin/memcache_view.bml
Modified: trunk/htdocs/admin/memcache_view.bml
===================================================================
--- trunk/htdocs/admin/memcache_view.bml	2012-03-11 11:10:17 UTC (rev 21335)
+++ trunk/htdocs/admin/memcache_view.bml	2012-03-11 11:21:31 UTC (rev 21336)
@@ -236,18 +236,8 @@
          $key =~ s/(#)(\w+)/$uid->($2)/eg;
          $key =~ s!\((\d+)\)!int($1/256)!eg;
                     
-         my $sock = LJ::MemCache::_get_sock($key);
          $ret .= "<p><b>Key: </b>$key<br />";
 
-         unless ($sock) {
-             $ret .= "<b>Error: </b>Could not connect to server<br /></p>";
-             next;
-         }
-         
-         if ($POST{'sock'}) {
-             $ret .= "<b>Socket:</b> $sock<br />";
-         } 
-
          my $hashkey = $get_hashkey->($key);
          if ($hashkey) {
              $ret .= "<b>Hashkey:</b> $hashkey<br />";
@@ -270,10 +260,8 @@
 
  $ret .= '<form method="post" action="memcache_view.bml">';
  $ret .= "<textarea name=query rows=3 cols=60 wrap=off></textarea> ";
- $ret .= "<p>" . LJ::html_check({ 'type' => 'check', 'name' => 'sock', 'id' => 'sock' });
- $ret .= "<label for='sock'>Show host/port per key.</label></p>";
 
- $ret .= "<input type='submit' value='Submit'>";
+ $ret .= "<p><input type='submit' value='Submit'></p>";
  return $ret;
 
 

Tags: ailyin, 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 

  • 5 comments