projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Update for release 0.14
[awesomized/libmemcached]
/
lib
/
memcached_behavior.c
diff --git
a/lib/memcached_behavior.c
b/lib/memcached_behavior.c
index f7a89604fe0d3408fa0dd58661107d877b13f94b..62b767f7b037a85ca473d142fec64e044ba58204 100644
(file)
--- a/
lib/memcached_behavior.c
+++ b/
lib/memcached_behavior.c
@@
-119,8
+119,9
@@
unsigned long long memcached_behavior_get(memcached_st *ptr,
int sock_size;
socklen_t sock_length= sizeof(int);
int sock_size;
socklen_t sock_length= sizeof(int);
+ /* REFACTOR */
/* We just try the first host, and if it is down we return zero */
/* We just try the first host, and if it is down we return zero */
- if ((memcached_connect(
ptr, 0
)) != MEMCACHED_SUCCESS)
+ if ((memcached_connect(
&ptr->hosts[0]
)) != MEMCACHED_SUCCESS)
return 0;
if (getsockopt(ptr->hosts[0].fd, SOL_SOCKET,
return 0;
if (getsockopt(ptr->hosts[0].fd, SOL_SOCKET,
@@
-134,8
+135,9
@@
unsigned long long memcached_behavior_get(memcached_st *ptr,
int sock_size;
socklen_t sock_length= sizeof(int);
int sock_size;
socklen_t sock_length= sizeof(int);
+ /* REFACTOR */
/* We just try the first host, and if it is down we return zero */
/* We just try the first host, and if it is down we return zero */
- if ((memcached_connect(
ptr, 0
)) != MEMCACHED_SUCCESS)
+ if ((memcached_connect(
&ptr->hosts[0]
)) != MEMCACHED_SUCCESS)
return 0;
if (getsockopt(ptr->hosts[0].fd, SOL_SOCKET,
return 0;
if (getsockopt(ptr->hosts[0].fd, SOL_SOCKET,