Pulling in Mark's fixes for memory leaks in memslap
[m6w6/libmemcached] / libmemcached / memcached.h
index 2b5471846500c92facd95ba2a51114da1fff4b0b..45d4085f443c244350c63a50ae646e4dd5bd5003 100644 (file)
@@ -31,7 +31,12 @@ extern "C" {
 #define MEMCACHED_VERSION_STRING_LENGTH 12
 
 /* string value */
-#define LIBMEMCACHED_VERSION_STRING "0.19"
+struct memcached_continuum_item_st {
+  uint32_t index;
+  uint32_t value;
+};
+
+#define LIBMEMCACHED_VERSION_STRING "0.20"
 
 struct memcached_stat_st {
   uint32_t pid;
@@ -77,6 +82,8 @@ struct memcached_st {
   memcached_server_distribution distribution;
   void *user_data;
   unsigned int wheel[MEMCACHED_WHEEL_SIZE];
+  uint32_t continuum_count;
+  memcached_continuum_item_st *continuum;
   memcached_clone_func on_clone;
   memcached_cleanup_func on_cleanup;
   memcached_free_function call_free;
@@ -90,6 +97,7 @@ struct memcached_st {
 #endif
 };
 
+
 /* Public API */
 const char * memcached_lib_version(void);