projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updated for custom hash functions/setting functions.
[awesomized/libmemcached]
/
libmemcached
/
quit.c
diff --git
a/libmemcached/quit.c
b/libmemcached/quit.c
index a8f70402062d7c1e87a486a2ac54959827091981..c22635a8a77af69ff22d2def8a810d461b6d8198 100644
(file)
--- a/
libmemcached/quit.c
+++ b/
libmemcached/quit.c
@@
-69,15
+69,19
@@
void memcached_quit_server(memcached_server_st *ptr, uint8_t io_death)
void memcached_quit(memcached_st *ptr)
{
void memcached_quit(memcached_st *ptr)
{
- u
nsigned in
t x;
+ u
int32_
t x;
- if (ptr->hosts == NULL ||
- memcached_server_count(ptr) == 0)
+ if (memcached_server_count(ptr) == 0)
return;
return;
- if (
ptr->hosts &&
memcached_server_count(ptr))
+ if (memcached_server_count(ptr))
{
for (x= 0; x < memcached_server_count(ptr); x++)
{
for (x= 0; x < memcached_server_count(ptr); x++)
- memcached_quit_server(&ptr->hosts[x], 0);
+ {
+ memcached_server_instance_st *instance=
+ memcached_server_instance_fetch(ptr, x);
+
+ memcached_quit_server(instance, 0);
+ }
}
}
}
}