Skip to content

Commit 143fc4c

Browse files
authored
added "now := time.Now()"
1 parent 7f421ef commit 143fc4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mvcc/backend/backend.go

+2
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ func (b *backend) Defrag() error {
291291
}
292292

293293
func (b *backend) defrag() error {
294+
now := time.Now()
295+
294296
// TODO: make this non-blocking?
295297
// lock batchTx to ensure nobody is using previous tx, and then
296298
// close previous ongoing tx.

0 commit comments

Comments
 (0)