From 62124c233dd0f0c7762261399db4b1a9225585c1 Mon Sep 17 00:00:00 2001 From: siddontang Date: Fri, 13 Mar 2015 11:18:47 +0800 Subject: [PATCH] bugfix for flushall --- ledis/ledis.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ledis/ledis.go b/ledis/ledis.go index c28c29b..0bd4526 100644 --- a/ledis/ledis.go +++ b/ledis/ledis.go @@ -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()