From 4816817c9b57174bbe07bf495e72e16ed07494e2 Mon Sep 17 00:00:00 2001 From: Halil Ozan Akgul Date: Mon, 6 Mar 2023 17:30:40 +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 205696628..30f2ee1f4 100644 --- a/src/backend/distributed/utils/attribute.c +++ b/src/backend/distributed/utils/attribute.c @@ -302,7 +302,7 @@ AttributeMetricsIfApplicable() { LWLockAcquire(&monitor->tenants[tenantIndex - 1].lock, LW_EXCLUSIVE); - ReduceScoreIfNecessary(monitor, monitor->tenants[tenantIndex - 1], queryTime); + ReduceScoreIfNecessary(monitor, &monitor->tenants[tenantIndex - 1], queryTime); TenantStats tempTenant = monitor->tenants[tenantIndex]; monitor->tenants[tenantIndex] = monitor->tenants[tenantIndex - 1];