Skip to content

Commit

Permalink
Merge pull request #12894 from MakDon/patch-1
Browse files Browse the repository at this point in the history
etcdserver/mvcc: update tw.trace.Step condition
  • Loading branch information
gyuho authored Apr 27, 2021
2 parents c4f7d57 + ddcb463 commit 06d6f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/mvcc/kvstore_txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ func (tw *storeTxnWrite) put(key, value []byte, leaseID lease.LeaseID) {
if err == nil {
c = created.main
oldLease = tw.s.le.GetLease(lease.LeaseItem{Key: string(key)})
tw.trace.Step("get key's previous created_revision and leaseID")
}
tw.trace.Step("get key's previous created_revision and leaseID")
ibytes := newRevBytes()
idxRev := revision{main: rev, sub: int64(len(tw.changes))}
revToBytes(idxRev, ibytes)
Expand Down

0 comments on commit 06d6f09

Please sign in to comment.