mirror of https://github.com/ledisdb/ledisdb.git
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()
|
it := l.ldb.NewIterator()
|
||||||
defer it.Close()
|
defer it.Close()
|
||||||
|
|
||||||
|
it.SeekToFirst()
|
||||||
|
|
||||||
w := l.ldb.NewWriteBatch()
|
w := l.ldb.NewWriteBatch()
|
||||||
defer w.Rollback()
|
defer w.Rollback()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue