浏览代码

added "now := time.Now()"

Wenjia 8 年之前
父节点
当前提交
143fc4ce79
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 {
 func (b *backend) defrag() error {
+	now := time.Now()
+	
 	// TODO: make this non-blocking?
 	// TODO: make this non-blocking?
 	// lock batchTx to ensure nobody is using previous tx, and then
 	// lock batchTx to ensure nobody is using previous tx, and then
 	// close previous ongoing tx.
 	// close previous ongoing tx.