+/* LibMemcached
+ * Copyright (C) 2006-2010 Brian Aker
+ * All rights reserved.
+ *
+ * Use and distribution licensed under the BSD license. See
+ * the COPYING file in the parent directory for full text.
+ *
+ * Summary:
+ *
+ */
+
#include "common.h"
return 0;
hash= hashkit_digest(&ptr->hashkit, key, key_length);
- WATCHPOINT_ASSERT(hash);
return hash;
}
hash= generate_hash(ptr, key, key_length);
}
- WATCHPOINT_ASSERT(hash);
-
if (memcached_behavior_get(ptr, MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS) && ptr->next_distribution_rebuild)
{
struct timeval now;
return dispatch_host(ptr, hash);
}
+
+hashkit_st *memcached_get_hashkit(memcached_st *ptr)
+{
+ return &ptr->hashkit;
+}