From: Jean-Charles Redoutey Date: Sat, 10 Oct 2009 20:25:40 +0000 (+0200) Subject: Also keep track of last disconnected server at blacklisting time X-Git-Tag: 0.34~6^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=32b7bde2bc62593a5aa18bb6157cb8388426c76b;p=awesomized%2Flibmemcached Also keep track of last disconnected server at blacklisting time --- diff --git a/libmemcached/memcached_connect.c b/libmemcached/memcached_connect.c index 1c4069cf..10df0198 100644 --- a/libmemcached/memcached_connect.c +++ b/libmemcached/memcached_connect.c @@ -326,6 +326,7 @@ memcached_return memcached_connect(memcached_server_st *ptr) if (memcached_behavior_get(ptr->root, MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS)) run_distribution(ptr->root); + ptr->root->last_disconnected_server = ptr; return MEMCACHED_SERVER_MARKED_DEAD; } }