Browse files

fixed a stat queue bug

git-svn-id: http://svn1.bj.corp.yahoo.com/repos/WebEng/lifesearch/memcacheq@60736 82b2e94c-9313-0410-8ced-81db5252d7f6
  • Loading branch information...
1 parent a414df2 commit 226b012f3160aa745f22efd32d7f0df10638987d xunxin committed Jun 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 bdb.c
View
2 bdb.c
@@ -510,7 +510,7 @@ int print_queue_db_list(char *buf, size_t buf_size){
while ((ret = cursorp->get(cursorp, &dbkey, &dbdata, DB_NEXT)) == 0) {
queue_db = queue_rec.queue_dbp;
queue_name[dbkey.size] = '\0';
- if (remains > strlen(queue_name) + 8){
+ if (remains > strlen(queue_name) + 30){
res = sprintf(buf, "STAT %s %d %d\r\n", queue_name, queue_rec.size, queue_rec.max_size);
remains -= res;
buf += res;

0 comments on commit 226b012

Please sign in to comment.