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
|
void
|
||||||
AttributeTask(char *tenantId, int colocationId, CmdType commandType)
|
AttributeTask(char *tenantId, int colocationId, CmdType commandType)
|
||||||
{
|
{
|
||||||
|
if (tenantId == NULL || colocationId == INVALID_COLOCATION_ID)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
colocationGroupId = colocationId;
|
colocationGroupId = colocationId;
|
||||||
strcpy_s(attributeToTenant, sizeof(attributeToTenant), tenantId);
|
strcpy_s(attributeToTenant, sizeof(attributeToTenant), tenantId);
|
||||||
attributeCommandType = commandType;
|
attributeCommandType = commandType;
|
||||||
|
|
Loading…
Reference in New Issue