X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fdump.c;h=18c159748bdd1e70d24e5fd78f6fd4ac285cdc3f;hb=c4dbc7e56b01545e25bc95ba122c79d4a2631a99;hp=9ec2dab5982ebbf46bce70dcbc8fa797dc198b48;hpb=44bc9cfbcf0794de92da28d9aaaa46d62945ce4e;p=awesomized%2Flibmemcached diff --git a/libmemcached/dump.c b/libmemcached/dump.c index 9ec2dab5..18c15974 100644 --- a/libmemcached/dump.c +++ b/libmemcached/dump.c @@ -90,7 +90,16 @@ error: memcached_return_t memcached_dump(memcached_st *ptr, memcached_dump_fn *callback, void *context, uint32_t number_of_callbacks) { - /* No support for Binary protocol yet */ + memcached_return_t rc; + if ((rc= initialize_query(ptr)) != MEMCACHED_SUCCESS) + { + return rc; + } + + /* + No support for Binary protocol yet + @todo Fix this so that we just flush, switch to ascii, and then go back to binary. + */ if (ptr->flags.binary_protocol) return MEMCACHED_FAILURE;