From 01dc8a43ba007d21f97c40271b366e538f752227 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 15 Jan 2021 18:31:29 -0800 Subject: [PATCH] fix rocksdb --- weed/filer/rocksdb/rocksdb_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/filer/rocksdb/rocksdb_store.go b/weed/filer/rocksdb/rocksdb_store.go index abeadb019..98023e82e 100644 --- a/weed/filer/rocksdb/rocksdb_store.go +++ b/weed/filer/rocksdb/rocksdb_store.go @@ -175,7 +175,7 @@ func (store *RocksDBStore) DeleteFolderChildren(ctx context.Context, fullpath we 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 { 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() { if limit > 0 {