Jae/fixprefixdb (#199)

* Fix PrefixDB Iterator
* PrefixDB Iterator/ReverseIterator fixes
* Bump version 0.8.2
* Update CHANGELOG.md about DebugDB
* Keep invalid source to be closed
* Use prefixBatch instead of memBatch
This commit is contained in:
Jae Kwon
2018-04-21 04:25:45 -07:00
committed by GitHub
parent 357648b8d6
commit e328006bfe
11 changed files with 360 additions and 103 deletions

View File

@ -1,6 +1,8 @@
package db
import "sync"
import (
"sync"
)
type atomicSetDeleter interface {
Mutex() *sync.Mutex
@ -66,6 +68,5 @@ func (mBatch *memBatch) write(doSync bool) {
case opTypeDelete:
mBatch.db.DeleteNoLock(op.key)
}
}
}