forked from mirror/ledisdb
bugfix for flushall
This commit is contained in:
parent
2a8a736e6a
commit
62124c233d
|
@ -131,6 +131,8 @@ func (l *Ledis) flushAll() error {
|
|||
it := l.ldb.NewIterator()
|
||||
defer it.Close()
|
||||
|
||||
it.SeekToFirst()
|
||||
|
||||
w := l.ldb.NewWriteBatch()
|
||||
defer w.Rollback()
|
||||
|
||||
|
|
Loading…
Reference in New Issue