Speed up host lookup for cases where we don't need to do it, or where it ends up...
[awesomized/libmemcached] / libmemcached / memcached.cc
index 765b79ab7fd650e16d72a363f841fe06d8f3e55a..82d99f09f6e3942bf748f98a2e1219de1ab0460c 100644 (file)
@@ -280,7 +280,7 @@ void memcached_servers_reset(memcached_st *self)
   {
     memcached_instance_list_free(memcached_instance_list(self), self->number_of_hosts);
 
-    memcached_instance_set(self, NULL);
+    memcached_instance_set(self, NULL, 0);
     self->number_of_hosts= 0;
     memcached_instance_free((org::libmemcached::Instance*)self->last_disconnected_server);
     self->last_disconnected_server= NULL;