mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-01-18 22:43:41 +08:00
fix rocksdb
This commit is contained in:
parent
16ad74f477
commit
01dc8a43ba
@ -175,7 +175,7 @@ func (store *RocksDBStore) DeleteFolderChildren(ctx context.Context, fullpath we
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func enumerate(iter *gorocksdb.Iterator, prefix, lastKey []byte, includeLastKey bool, limit int, fn func(key, value []byte) bool) (hasMore bool, err error) {
|
func enumerate(iter *gorocksdb.Iterator, prefix, lastKey []byte, includeLastKey bool, limit int64, fn func(key, value []byte) bool) (hasMore bool, err error) {
|
||||||
|
|
||||||
if len(lastKey) == 0 {
|
if len(lastKey) == 0 {
|
||||||
iter.Seek(prefix)
|
iter.Seek(prefix)
|
||||||
@ -190,7 +190,7 @@ func enumerate(iter *gorocksdb.Iterator, prefix, lastKey []byte, includeLastKey
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
i := 0
|
i := int64(0)
|
||||||
for ; iter.Valid(); iter.Next() {
|
for ; iter.Valid(); iter.Next() {
|
||||||
|
|
||||||
if limit > 0 {
|
if limit > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user