From cb39c1f6772b1838ca5a02424689b773ee14c4fd Mon Sep 17 00:00:00 2001 From: Halil Ozan Akgul Date: Wed, 8 Mar 2023 16:32:50 +0300 Subject: [PATCH] dnm --- src/backend/distributed/utils/attribute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/distributed/utils/attribute.c b/src/backend/distributed/utils/attribute.c index 1be9657dd..a440e7ae4 100644 --- a/src/backend/distributed/utils/attribute.c +++ b/src/backend/distributed/utils/attribute.c @@ -34,7 +34,7 @@ ExecutorEnd_hook_type prev_ExecutorEnd = NULL; #define ONE_QUERY_SCORE 1000000000 /* TODO maybe needs to be a stack */ -char *attributeToTenant = NULL; +char attributeToTenant[100] = ""; CmdType attributeCommandType = CMD_UNKNOWN; int colocationGroupId = -1; clock_t attributeToTenantStart = { 0 }; @@ -144,7 +144,7 @@ citus_stats_tenants(PG_FUNCTION_ARGS) void AttributeQueryIfAnnotated(const char *query_string, CmdType commandType) { - attributeToTenant = NULL; +// attributeToTenant = NULL; attributeCommandType = commandType; @@ -349,7 +349,7 @@ AttributeMetricsIfApplicable() tenantStats->tenantAttribute))); } } - attributeToTenant = NULL; + //attributeToTenant = NULL; }