You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method setIfNotExists in EtcdClient is implemented like this: Request.request().methodPUT().key(key).value(value).prevExist(false);
which results in this uri:
/v2/keys/KEY
As you can see there's nothing about previous value, prevExist=true is missing.
prevExist is omitted due to the current uri building implementation which for prevExist looks like this:
in paramBody method:
...
if ( prevExist ) {
if (!first) builder.append("&");
builder.append("prevExist=true");
first=false;
}
...
Imo it should look somewhat like this: private Boolean prevExist;
Method setIfNotExists in EtcdClient is implemented like this:
Request.request().methodPUT().key(key).value(value).prevExist(false);
which results in this uri:
/v2/keys/KEY
As you can see there's nothing about previous value,
prevExist=true
is missing.prevExist
is omitted due to the current uri building implementation which forprevExist
looks like this:in
paramBody
method:Imo it should look somewhat like this:
private Boolean prevExist;
in
paramBody
method:Reproduction:
use
EtcdClient#setIfNotExists
.The text was updated successfully, but these errors were encountered: