bugfix for flushall

This commit is contained in:
siddontang 2015-03-13 11:18:47 +08:00
parent 2a8a736e6a
commit 62124c233d
1 changed files with 2 additions and 0 deletions

View File

@ -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()