Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.10.5
-
Fix Version/s: None
-
Component/s: Zend_Queue
-
Labels:None
Description
Memcacheq return:
stats queue
STAT queue_name1 66/66
STAT queue_name2 21/21
STAT queue_name3 14/14
http://memcachedb.org/memcacheq/ has error.
see section "General-purpose statistics" on http://memcachedb.googlecode.com/svn/trunk/doc/protocol.txt
The output of the stats command is change in version 0.2.0, see: http://www.serverphorums.com/read.php?9,74777,92986
I've fixed this with a regular expression, not sure if this is the best solution but it works and is backwards compatible
Line 221:
$this->_queues[] = preg_replace('~STAT (\w+)(?:[ 0-9]*/?[0-9]*)~', '\\1', $line);$this->_queues[] = preg_replace('~STAT (\w+)(?:[ 0-9]*/?[0-9]*)~', '\\1', $line);