add load balance properly restClientFromHash() bucket/prefix (#14621)

spread out resuming further to other nodes
This commit is contained in:
Harshavardhana
2022-03-25 03:41:31 -07:00
committed by GitHub
parent 566cffe53d
commit 401958938d
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -361,7 +361,7 @@ func (r *metacacheReader) filter(o listPathOptions) (entries metaCacheEntriesSor
func (er *erasureObjects) streamMetadataParts(ctx context.Context, o listPathOptions) (entries metaCacheEntriesSorted, err error) {
retries := 0
rpc := globalNotificationSys.restClientFromHash(o.Bucket)
rpc := globalNotificationSys.restClientFromHash(pathJoin(o.Bucket, o.Prefix))
for {
if contextCanceled(ctx) {