mirror of https://github.com/citusdata/citus.git
Merge branch 'main' into dependabot/pip/src/test/regress/tornado-6.4.2
commit
c55467bd12
|
@ -109,13 +109,20 @@ citus_unmark_object_distributed(PG_FUNCTION_ARGS)
|
||||||
Oid classid = PG_GETARG_OID(0);
|
Oid classid = PG_GETARG_OID(0);
|
||||||
Oid objid = PG_GETARG_OID(1);
|
Oid objid = PG_GETARG_OID(1);
|
||||||
int32 objsubid = PG_GETARG_INT32(2);
|
int32 objsubid = PG_GETARG_INT32(2);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SQL function master_unmark_object_distributed doesn't expect the
|
||||||
|
* 4th argument but SQL function citus_unmark_object_distributed does
|
||||||
|
* so as checkobjectexistence argument. For this reason, we try to
|
||||||
|
* get the 4th argument only if this C function is called with 4
|
||||||
|
* arguments.
|
||||||
|
*/
|
||||||
bool checkObjectExistence = true;
|
bool checkObjectExistence = true;
|
||||||
if (!PG_ARGISNULL(3))
|
if (PG_NARGS() == 4)
|
||||||
{
|
{
|
||||||
checkObjectExistence = PG_GETARG_BOOL(3);
|
checkObjectExistence = PG_GETARG_BOOL(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ObjectAddress address = { 0 };
|
ObjectAddress address = { 0 };
|
||||||
ObjectAddressSubSet(address, classid, objid, objsubid);
|
ObjectAddressSubSet(address, classid, objid, objsubid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue