pull/6763/head
Gokhan Gulbiz 2023-03-22 17:13:24 +03:00
parent bb2ab9e93c
commit 46ae3a37d5
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
2 changed files with 39 additions and 34 deletions

View File

@ -200,10 +200,12 @@ AttributeQueryIfAnnotated(const char *query_string, CmdType commandType)
} }
} }
/* /*
* AttributeTask assigns the given attributes of a tenant and starts a timer * AttributeTask assigns the given attributes of a tenant and starts a timer
*/ */
void AttributeTask(char *tenantId, int colocationId, CmdType commandType) void
AttributeTask(char *tenantId, int colocationId, CmdType commandType)
{ {
colocationGroupId = colocationId; colocationGroupId = colocationId;
strcpy_s(attributeToTenant, sizeof(attributeToTenant), tenantId); strcpy_s(attributeToTenant, sizeof(attributeToTenant), tenantId);
@ -220,6 +222,7 @@ void AttributeTask(char *tenantId, int colocationId, CmdType commandType)
attributeToTenantStart = clock(); attributeToTenantStart = clock();
} }
/* /*
* AnnotateQuery annotates the query with tenant attributes. * AnnotateQuery annotates the query with tenant attributes.
*/ */
@ -657,6 +660,7 @@ ExtractTopComment(const char *inputString)
return commentData->data; return commentData->data;
} }
/* EscapeCommentChars adds a backslash before each occurrence of '*' or '/' in the input string */ /* EscapeCommentChars adds a backslash before each occurrence of '*' or '/' in the input string */
static char * static char *
EscapeCommentChars(const char *str) EscapeCommentChars(const char *str)
@ -678,6 +682,7 @@ EscapeCommentChars(const char *str)
return escapedString->data; return escapedString->data;
} }
/* UnescapeCommentChars removes the backslash that precedes '*' or '/' in the input string. */ /* UnescapeCommentChars removes the backslash that precedes '*' or '/' in the input string. */
static char * static char *
UnescapeCommentChars(const char *str) UnescapeCommentChars(const char *str)