aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/hbase
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-31 20:11:44 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-31 20:11:44 -0800
commit4be51c07014b1072a4e9dbbf9303a13e94fefe5e (patch)
tree12742aea6436805d43c99e9de9afac768e417a1a /weed/filer/hbase
parent1102ae32c4012f37fe4ce6d31758f8802f9e644d (diff)
downloadseaweedfs-4be51c07014b1072a4e9dbbf9303a13e94fefe5e.tar.xz
seaweedfs-4be51c07014b1072a4e9dbbf9303a13e94fefe5e.zip
filer: leveldb and hbase may miss files when listing large directories more than 1024
fix https://github.com/chrislusf/seaweedfs/issues/1768
Diffstat (limited to 'weed/filer/hbase')
-rw-r--r--weed/filer/hbase/hbase_store.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/filer/hbase/hbase_store.go b/weed/filer/hbase/hbase_store.go
index 2e4491515..e0d878ca7 100644
--- a/weed/filer/hbase/hbase_store.go
+++ b/weed/filer/hbase/hbase_store.go
@@ -185,8 +185,6 @@ func (store *HbaseStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPa
continue
}
- lastFileName = fileName
-
value := cell.Value
if fileName == startFileName && !includeStartFile {
@@ -197,6 +195,9 @@ func (store *HbaseStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPa
if limit < 0 {
break
}
+
+ lastFileName = fileName
+
entry := &filer.Entry{
FullPath: fullpath,
}