Parcourir la source

added "now := time.Now()"

Wenjia il y a 7 ans
Parent
commit
143fc4ce79
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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.