Explorar o código

added "now := time.Now()"

Wenjia %!s(int64=7) %!d(string=hai) anos
pai
achega
143fc4ce79
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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.