pull/6763/head
Halil Ozan Akgul 2023-03-08 16:50:30 +03:00
parent cb39c1f677
commit a5d0e4561c
1 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ AttributeQueryIfAnnotated(const char *query_string, CmdType commandType)
quote_literal_cstr(tenantId)))); quote_literal_cstr(tenantId))));
} }
attributeToTenant = (char *) malloc(strlen(tenantId)); // attributeToTenant = (char *) malloc(strlen(tenantId));
strcpy(attributeToTenant, tenantId); strcpy(attributeToTenant, tenantId);
} }
else else
@ -250,7 +250,7 @@ CitusAttributeToEnd(QueryDesc *queryDesc)
static void static void
AttributeMetricsIfApplicable() AttributeMetricsIfApplicable()
{ {
if (attributeToTenant) if (strcmp(attributeToTenant, "") != 0)
{ {
clock_t end = { 0 }; clock_t end = { 0 };
double cpu_time_used = 0; double cpu_time_used = 0;