From fddbbe51351ffdedc50eac416d571670a9cb43cc Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Tue, 8 Jul 2025 18:34:22 +0530 Subject: [PATCH] Prefer b2 for reading metadata --- server/pkg/controller/filedata/controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/pkg/controller/filedata/controller.go b/server/pkg/controller/filedata/controller.go index ec269b690c..65cbef0033 100644 --- a/server/pkg/controller/filedata/controller.go +++ b/server/pkg/controller/filedata/controller.go @@ -267,9 +267,9 @@ func (c *Controller) fetchS3FileMetadata(ctx context.Context, row fileData.Row, // :todo:neeraj make it configurable to // specify preferred dc to read from // and fallback logic to read from different bucket when we fail to read from preferred dc - if dc == "b6" { - if array.StringInList("b5", row.ReplicatedBuckets) { - dc = "b5" + if dc == "b5" { + if array.StringInList("b6", row.ReplicatedBuckets) { + dc = "b6" } } opt := _defaultFetchConfig