projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Testing to make sure that partial reads do not break protocol (aka on active
[awesomized/libmemcached]
/
lib
/
memcached_hash.c
diff --git
a/lib/memcached_hash.c
b/lib/memcached_hash.c
index 7e7814e6818be2802c50d8f25929897bac73e2c8..33c1055bbfd70ffd60aa1e902739367136b08705 100644
(file)
--- a/
lib/memcached_hash.c
+++ b/
lib/memcached_hash.c
@@
-17,6
+17,8
@@
unsigned int memcached_generate_hash(memcached_st *ptr, char *key, size_t key_le
uint64_t hash= 1; /* Just here to remove compile warning */
unsigned int x;
+ WATCHPOINT_ASSERT(ptr->number_of_hosts);
+
switch (ptr->hash)
{
case MEMCACHED_HASH_DEFAULT: