added "now := time.Now()"

This commit is contained in:
Wenjia
2018-07-19 17:27:40 -07:00
committed by GitHub
parent 7f421efe48
commit 143fc4ce79

View File

@@ -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.