filer: leveldb and hbase may miss files when listing large directories more than 1024

fix https://github.com/chrislusf/seaweedfs/issues/1768
This commit is contained in:
Chris Lu
2021-01-31 20:11:44 -08:00
parent 1102ae32c4
commit 4be51c0701
4 changed files with 6 additions and 5 deletions

View File

@@ -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,
}