Updated rmdir. withPrefix value should be based on the argument pass

by the client
This commit is contained in:
arches 2016-07-08 10:30:43 -04:00
parent 77109d06e4
commit dd798f5dfd
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ pplx::task<etcd::Response> 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<etcdv3::AsyncDeleteAction> call(new etcdv3::AsyncDeleteAction(params));
return Response::create(call);