projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Incomming fixes from Charles on the replication branch.
[awesomized/libmemcached]
/
lib
/
memcached_storage.c
diff --git
a/lib/memcached_storage.c
b/lib/memcached_storage.c
index aac9b9227cae8d1c77f62ee0a912a86f53e39fb3..959f0b644fb254175d3ebbb4e3a55c4d4e43dc40 100644
(file)
--- a/
lib/memcached_storage.c
+++ b/
lib/memcached_storage.c
@@
-118,7
+118,7
@@
static inline memcached_return memcached_send(memcached_st *ptr,
/* On error we just jump to the next potential server */
error:
- if (
replicas > 1 && ptr->distribution == MEMCACHED_DISTRIBUTION_CONSISTENT
)
+ if (
ptr->number_of_replicas > 1
)
{
if (server_key == (ptr->number_of_hosts - 1))
server_key= 0;