X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fhash.cc;h=42e4698930fc716a3327dab75e1c3715bcc060ae;hb=9069819ac2940397e96210867e0666b801b97f60;hp=ae07dfd0ea466829df85e16d09633f7e8e53d4fc;hpb=04b8554c3724eae57fbd75dc6b3e69dca8b58187;p=m6w6%2Flibmemcached diff --git a/libmemcached/hash.cc b/libmemcached/hash.cc index ae07dfd0..42e46989 100644 --- a/libmemcached/hash.cc +++ b/libmemcached/hash.cc @@ -64,7 +64,6 @@ static uint32_t dispatch_host(const memcached_st *ptr, uint32_t hash) uint32_t num= ptr->ketama.continuum_points_counter; WATCHPOINT_ASSERT(ptr->ketama.continuum); - hash= hash; memcached_continuum_item_st *begin, *end, *left, *right, *middle; begin= left= ptr->ketama.continuum; end= right= ptr->ketama.continuum + num; @@ -132,7 +131,7 @@ static inline void _regen_for_auto_eject(memcached_st *ptr) { struct timeval now; - if (gettimeofday(&now, NULL) == 0 && + if (gettimeofday(&now, NULL) == 0 and now.tv_sec > ptr->ketama.next_distribution_rebuild) { run_distribution(ptr);