This commit is contained in:
siddontang 2014-05-07 16:45:23 +08:00
parent 24d6fb3572
commit 2dd6408d57
1 changed files with 1 additions and 1 deletions

View File

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