Extend pool API for fetch/release. Fix concurrency issue in test case.
[m6w6/libmemcached] / libmemcached / stats.cc
index d4d8b33b25c751711e3118d14f86115dcefa7d9d..515adeeb8daeb735c30d0d1b31a63b3e187a1fee 100644 (file)
@@ -433,8 +433,7 @@ static memcached_return_t ascii_stats_fetch(memcached_stat_st *memc_stat,
       string_ptr= end_ptr + 1;
       for (end_ptr= string_ptr; !(isspace(*end_ptr)); end_ptr++) {};
       value= string_ptr;
-      value[(size_t)(end_ptr-string_ptr)]= 0;
-      string_ptr= end_ptr + 2;
+      value[(size_t)(end_ptr -string_ptr)]= 0;
       if (memc_stat)
       {
         unlikely((set_data(memc_stat, key, value)) == MEMCACHED_UNKNOWN_STAT_KEY)