X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=lib%2Fmemcached_flush.c;h=fa3dd8d8973eb9de56b925eea2177a973586aa7c;hb=fddf7c8e17eb5b970828ab1dec54dbbac159693d;hp=5fa5d960264ed02a54e4a83777104b5f612d759a;hpb=d283f47cade6fcd1256e738057667fbcca7b06c1;p=awesomized%2Flibmemcached diff --git a/lib/memcached_flush.c b/lib/memcached_flush.c index 5fa5d960..fa3dd8d8 100644 --- a/lib/memcached_flush.c +++ b/lib/memcached_flush.c @@ -20,10 +20,10 @@ memcached_return memcached_flush(memcached_st *ptr, time_t expiration) send_length= snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, "flush_all\r\n"); - rc= memcached_do(ptr, x, buffer, send_length, 1); + rc= memcached_do(&ptr->hosts[x], buffer, send_length, 1); if (rc == MEMCACHED_SUCCESS) - (void)memcached_response(ptr, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, x); + (void)memcached_response(&ptr->hosts[x], buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL); } LIBMEMCACHED_MEMCACHED_FLUSH_END();