whoops leveldb keys not namespaceable and probably more

master
bel 2019-06-22 16:54:27 -06:00
parent 52479ed8a0
commit 15c5e73d05
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package storage
import (
"path"
"strings"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/filter"
@ -39,6 +40,7 @@ func (ldb *LevelDB) List(ns []string, limits ...string) ([]string, error) {
} else if k > limits[1] {
break
}
k = strings.TrimPrefix(k, namespace+"/")
keys = append(keys, k)
}
err := it.Error()