X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fhash.cc;h=e239320d3b02f26451ae730843838245b1e4a015;hb=1235c31867b421455a9758909144e74c954d9395;hp=0e6295b8893cc9557fa0dc14d9cdacd08120a0d5;hpb=ae6bc7501efd5aeaaee92dabe2da0ec2d1625c5b;p=m6w6%2Flibmemcached diff --git a/libmemcached/hash.cc b/libmemcached/hash.cc index 0e6295b8..e239320d 100644 --- a/libmemcached/hash.cc +++ b/libmemcached/hash.cc @@ -37,8 +37,10 @@ #include -#include +#include + +#include uint32_t memcached_generate_hash_value(const char *key, size_t key_length, memcached_hash_t hash_algorithm) { @@ -60,7 +62,7 @@ static uint32_t dispatch_host(const memcached_st *ptr, uint32_t hash) case MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPY: { uint32_t num= ptr->ketama.continuum_points_counter; - WATCHPOINT_ASSERT(ptr->continuum); + WATCHPOINT_ASSERT(ptr->ketama.continuum); hash= hash; memcached_continuum_item_st *begin, *end, *left, *right, *middle;