From e32a24e94a0c81550f44029320f1cb1b442fb87e Mon Sep 17 00:00:00 2001 From: Halil Ozan Akgul Date: Fri, 10 Mar 2023 11:20:44 +0300 Subject: [PATCH] fix --- src/backend/distributed/utils/attribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/distributed/utils/attribute.c b/src/backend/distributed/utils/attribute.c index 4ec8decaa..34791a81a 100644 --- a/src/backend/distributed/utils/attribute.c +++ b/src/backend/distributed/utils/attribute.c @@ -312,7 +312,7 @@ AttributeMetricsIfApplicable() */ while (tenantIndex != 0 && monitor->tenants[tenantIndex - 1].score < - monitor->tenants[tenantIndex]->score) + monitor->tenants[tenantIndex].score) { LWLockAcquire(&monitor->tenants[tenantIndex - 1].lock, LW_EXCLUSIVE);