X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached.h;h=9244057945bbf899407e89a4e2e0cdb274f2a6e7;hb=7cbb74311e579a2eaac356194b4e6c4e86f1fcf9;hp=4ea5ded211f0850c8099560c97fc384fd434bdd9;hpb=f6b4c8b2322df7ef8b0e430c3a951e41242fe14a;p=m6w6%2Flibmemcached diff --git a/libmemcached/memcached.h b/libmemcached/memcached.h index 4ea5ded2..92440579 100644 --- a/libmemcached/memcached.h +++ b/libmemcached/memcached.h @@ -52,7 +52,7 @@ struct memcached_st { } options; memcached_server_distribution_t distribution; memcached_hash_t hash; - uint32_t continuum_points_counter; + uint32_t continuum_points_counter; // Ketama memcached_server_st *hosts; memcached_server_st *last_disconnected_server; int32_t snd_timeout; @@ -62,7 +62,6 @@ struct memcached_st { uint32_t io_bytes_watermark; uint32_t io_key_prefetch; uint32_t number_of_hosts; - uint32_t cursor_server; int cached_errno; struct { bool auto_eject_hosts:1; @@ -84,16 +83,16 @@ struct memcached_st { int32_t poll_timeout; int32_t connect_timeout; int32_t retry_timeout; - uint32_t continuum_count; + uint32_t continuum_count; // Ketama int send_size; int recv_size; void *user_data; - time_t next_distribution_rebuild; + time_t next_distribution_rebuild; // Ketama size_t prefix_key_length; uint32_t number_of_replicas; memcached_hash_t distribution_hash; memcached_result_st result; - memcached_continuum_item_st *continuum; + memcached_continuum_item_st *continuum; // Ketama memcached_clone_fn on_clone; memcached_cleanup_fn on_cleanup; memcached_free_fn call_free; @@ -109,6 +108,9 @@ struct memcached_st { LIBMEMCACHED_API memcached_return_t memcached_version(memcached_st *ptr); +LIBMEMCACHED_API +void memcached_servers_reset(memcached_st *ptr); + /* Public API */ LIBMEMCACHED_API