-
-memcached_return memcached_finish_server(memcached_st *ptr, unsigned int server_key)
-{
- memcached_return rc;
- memcached_string_st *result_buffer;
-
- result_buffer= &ptr->result_buffer;
-
- rc= MEMCACHED_SUCCESS;
- while (rc == MEMCACHED_SUCCESS)
- {
- rc= memcached_value_fetch(ptr, NULL, NULL, result_buffer,
- NULL, NULL, server_key);
- }
- ptr->hosts[server_key].cursor_active= 0;
-
- return rc;
-}
-
-void memcached_finish(memcached_st *ptr)
-{
- unsigned int x;
-
- for (x= 0; x < ptr->number_of_hosts; x++)
- {
- if (ptr->hosts[x].cursor_active)
- (void)memcached_finish_server(ptr, x);
- }
-
- ptr->cursor_server= 0;
-}