Silently ignore the new stats fields
[m6w6/libmemcached] / libmemcached / memcached_stats.c
index 3ad236d2108c347f8eb778c52e7211442b8cc222..1c8c174f8c5d333f33ca95ea891b7065a1cadfa5 100644 (file)
@@ -136,7 +136,15 @@ static void set_data(memcached_stat_st *stat, char *key, char *value)
   {
     stat->threads= strtol(value, (char **)NULL, 10);
   }
-  else
+  else if (!(strcmp("delete_misses", key) == 0 ||/* New stats in the 1.3 beta */
+             strcmp("delete_hits", key) == 0 ||/* Just swallow them for now.. */
+             strcmp("incr_misses", key) == 0 ||
+             strcmp("incr_hits", key) == 0 ||
+             strcmp("decr_misses", key) == 0 ||
+             strcmp("decr_hits", key) == 0 ||
+             strcmp("cas_misses", key) == 0 ||
+             strcmp("cas_hits", key) == 0 ||
+             strcmp("cas_badval", key) == 0))
   {
     fprintf(stderr, "Unknown key %s\n", key);
   }