From ddcb463822aadf824fff0c2a5a7ce759536bd205 Mon Sep 17 00:00:00 2001 From: Makdon Date: Sun, 25 Apr 2021 23:07:45 +0800 Subject: [PATCH] etcdserver/mvcc: update trace.Step condition --- server/mvcc/kvstore_txn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mvcc/kvstore_txn.go b/server/mvcc/kvstore_txn.go index aaa93d9ab94..870c710ec24 100644 --- a/server/mvcc/kvstore_txn.go +++ b/server/mvcc/kvstore_txn.go @@ -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)