From 2dd6408d575c7af666c79c598e3c46c04a8142fc Mon Sep 17 00:00:00 2001 From: siddontang Date: Wed, 7 May 2014 16:45:23 +0800 Subject: [PATCH] update --- leveldb/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leveldb/db.go b/leveldb/db.go index 24c6ba9..d0fb1b3 100644 --- a/leveldb/db.go +++ b/leveldb/db.go @@ -116,7 +116,7 @@ func (db *DB) Destroy() { } func (db *DB) Clear() { - it := db.Iterator(nil, nil, 0, 0) + it := db.Iterator(nil, nil, 0, -1) for ; it.Valid(); it.Next() { db.Delete(it.Key()) }