From dd798f5dfd17ac966bfc8dfac645fe35f99553c6 Mon Sep 17 00:00:00 2001 From: arches Date: Fri, 8 Jul 2016 10:30:43 -0400 Subject: [PATCH] Updated rmdir. withPrefix value should be based on the argument pass by the client --- src/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.cpp b/src/Client.cpp index fd98487..31dd760 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -141,7 +141,7 @@ pplx::task etcd::Client::rmdir(std::string const & key, bool rec { etcdv3::ActionParameters params; params.key.assign(key); - params.withPrefix = true; + params.withPrefix = recursive; params.kv_stub = stub_.get(); std::shared_ptr call(new etcdv3::AsyncDeleteAction(params)); return Response::create(call);