fix: HDFS list bucket when subpath is provided (#10884)

This commit is contained in:
cksac 2020-11-13 03:26:51 +08:00 committed by GitHub
parent ca88ca753c
commit be83dfc52a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ func (n *hdfsObjects) GetBucketInfo(ctx context.Context, bucket string) (bi mini
} }
func (n *hdfsObjects) ListBuckets(ctx context.Context) (buckets []minio.BucketInfo, err error) { func (n *hdfsObjects) ListBuckets(ctx context.Context) (buckets []minio.BucketInfo, err error) {
entries, err := n.clnt.ReadDir(hdfsSeparator) entries, err := n.clnt.ReadDir(n.hdfsPathJoin())
if err != nil { if err != nil {
logger.LogIf(ctx, err) logger.LogIf(ctx, err)
return nil, hdfsToObjectErr(ctx, err) return nil, hdfsToObjectErr(ctx, err)