Updated rmdir. withPrefix value should be based on the argument pass
by the client
This commit is contained in:
parent
77109d06e4
commit
dd798f5dfd
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue