Also keep track of last disconnected server at blacklisting time
authorJean-Charles Redoutey <jc@Jayce2009lnx>
Sat, 10 Oct 2009 20:25:40 +0000 (22:25 +0200)
committerJean-Charles Redoutey <jc@Jayce2009lnx>
Sat, 10 Oct 2009 20:25:40 +0000 (22:25 +0200)
libmemcached/memcached_connect.c

index 1c4069cfc530771d9cd9b0f131924a23a4a704f7..10df0198c15928c066330974b218664cc7ec34c0 100644 (file)
@@ -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;
     }
   }