Browse Source

added "now := time.Now()"

Wenjia 7 years ago
parent
commit
143fc4ce79
1 changed files with 2 additions and 0 deletions
  1. 2 0
      mvcc/backend/backend.go

+ 2 - 0
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.