mirror of https://github.com/citusdata/citus.git
Validate tenantId and colocationId
parent
0efb897706
commit
161ec751d1
|
@ -207,6 +207,11 @@ AttributeQueryIfAnnotated(const char *query_string, CmdType commandType)
|
|||
void
|
||||
AttributeTask(char *tenantId, int colocationId, CmdType commandType)
|
||||
{
|
||||
if (tenantId == NULL || colocationId == INVALID_COLOCATION_ID)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
colocationGroupId = colocationId;
|
||||
strcpy_s(attributeToTenant, sizeof(attributeToTenant), tenantId);
|
||||
attributeCommandType = commandType;
|
||||
|
|
Loading…
Reference in New Issue