mirror of https://github.com/siddontang/go.git
update
This commit is contained in:
parent
24d6fb3572
commit
2dd6408d57
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue