mirror of https://github.com/etcd-io/dbtester.git
zk set with version 0
This commit is contained in:
parent
0882a57517
commit
ef759ef011
|
|
@ -272,7 +272,7 @@ func doPutZk(conn *zk.Conn, requests <-chan request, sameKey bool) {
|
|||
if !sameKey || idx == 0 {
|
||||
_, err = conn.Create(op.key, op.value, zkCreateFlags, zkCreateAcl)
|
||||
} else {
|
||||
_, err = conn.Set(op.key, op.value, idx)
|
||||
_, err = conn.Set(op.key, op.value, 0)
|
||||
}
|
||||
|
||||
var errStr string
|
||||
|
|
|
|||
Loading…
Reference in New Issue