Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
zketcd: preserve lease on SetData
Browse files Browse the repository at this point in the history
  • Loading branch information
heyitsanthony committed Nov 8, 2017
1 parent baba32f commit c0202ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zketcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ func (z *zkEtcd) mkSetDataTxnOp(op *SetDataRequest) opBundle {
return ErrBadVersion

}
s.Put(mkPathKey(p), string(op.Data))
s.Put(mkPathVer(p), string(encodeInt64(int64(currentVersion+1))))
s.Put(mkPathMTime(p), encodeTime())
s.Put(mkPathKey(p), string(op.Data), etcd.WithIgnoreLease())
s.Put(mkPathVer(p), string(encodeInt64(int64(currentVersion+1))), etcd.WithIgnoreLease())
s.Put(mkPathMTime(p), encodeTime(), etcd.WithIgnoreLease())
return nil
}

Expand Down

0 comments on commit c0202ca

Please sign in to comment.