aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/hbase
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-14 23:10:37 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-14 23:10:37 -0800
commitf002e668def4abdfda5fe8a76599ae6d0fb76319 (patch)
treedce928f9f851226ce64df118fa9b892aea43f1a3 /weed/filer/hbase
parent19e52fd4146d32b4da48a3369385442e836a7647 (diff)
downloadseaweedfs-f002e668def4abdfda5fe8a76599ae6d0fb76319.tar.xz
seaweedfs-f002e668def4abdfda5fe8a76599ae6d0fb76319.zip
change limit to int64 in case of overflow
Diffstat (limited to 'weed/filer/hbase')
-rw-r--r--weed/filer/hbase/hbase_store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/hbase/hbase_store.go b/weed/filer/hbase/hbase_store.go
index 5a64ffe7e..c93374b15 100644
--- a/weed/filer/hbase/hbase_store.go
+++ b/weed/filer/hbase/hbase_store.go
@@ -148,11 +148,11 @@ func (store *HbaseStore) DeleteFolderChildren(ctx context.Context, path util.Ful
return
}
-func (store *HbaseStore) ListDirectoryEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int) ([]*filer.Entry, bool, error) {
+func (store *HbaseStore) ListDirectoryEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int64) ([]*filer.Entry, bool, error) {
return store.ListDirectoryPrefixedEntries(ctx, dirPath, startFileName, includeStartFile, limit, "")
}
-func (store *HbaseStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int, prefix string) ([]*filer.Entry, bool, error) {
+func (store *HbaseStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int64, prefix string) ([]*filer.Entry, bool, error) {
family := map[string][]string{store.cfMetaDir: {COLUMN_NAME}}
expectedPrefix := []byte(dirPath.Child(prefix))
scan, err := hrpc.NewScanRange(ctx, store.table, expectedPrefix, nil, hrpc.Families(family))