From: Brian Aker Date: Sun, 10 Jan 2010 06:11:32 +0000 (-0800) Subject: Updated comments in code. X-Git-Tag: 0.37~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7cbb74311e579a2eaac356194b4e6c4e86f1fcf9;p=m6w6%2Flibmemcached Updated comments in code. --- diff --git a/libmemcached/hosts.c b/libmemcached/hosts.c index e8180720..683b0843 100644 --- a/libmemcached/hosts.c +++ b/libmemcached/hosts.c @@ -129,7 +129,9 @@ static memcached_return_t update_continuum(memcached_st *ptr) } } else + { live_servers= memcached_server_count(ptr); + } is_ketama_weighted= memcached_behavior_get(ptr, MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED); points_per_server= (uint32_t) (is_ketama_weighted ? MEMCACHED_POINTS_PER_SERVER_KETAMA : MEMCACHED_POINTS_PER_SERVER); diff --git a/libmemcached/memcached.h b/libmemcached/memcached.h index d67a2137..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; @@ -83,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;