瀏覽代碼

Remove parsing of allocation stats from responses to INFO.

The allocation stats section was most likely something available in
betas of some older release of Redis, it is not even reported on the
official documentation.
Daniele Alessandri 11 年之前
父節點
當前提交
63992a0a6e
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      lib/Predis/Command/ServerInfo.php

+ 1 - 5
lib/Predis/Command/ServerInfo.php

@@ -55,11 +55,7 @@ class ServerInfo extends Command
     {
         list($k, $v) = explode(':', $row, 2);
 
-        if (!preg_match('/^db\d+$/', $k)) {
-            if ($k === 'allocation_stats') {
-                $v = $this->parseAllocationStats($v);
-            }
-        } else {
+        if (preg_match('/^db\d+$/', $k)) {
             $v = $this->parseDatabaseStats($v);
         }