From 143fc4ce7939bdaa77a7affce45778d9ad5f8ce9 Mon Sep 17 00:00:00 2001 From: Wenjia Date: Thu, 19 Jul 2018 17:27:40 -0700 Subject: [PATCH] added "now := time.Now()" --- mvcc/backend/backend.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mvcc/backend/backend.go b/mvcc/backend/backend.go index 924cc8c68e5..f7d9e60c2e7 100644 --- a/mvcc/backend/backend.go +++ b/mvcc/backend/backend.go @@ -291,6 +291,8 @@ func (b *backend) Defrag() error { } func (b *backend) defrag() error { + now := time.Now() + // TODO: make this non-blocking? // lock batchTx to ensure nobody is using previous tx, and then // close previous ongoing tx.