mirror of https://github.com/citusdata/citus.git
Use literal instead of constant to fix 9.4 build
PG_UINT32_MAX doesn't exist before 9.5. Missed this because I removed my assert-enabled builds during packaging work. Fixes #619pull/629/head
parent
e888b9f6c6
commit
8b788eb899
|
@ -301,9 +301,8 @@ ExecuteDistributedModify(Task *task)
|
||||||
Assert(currentAffectedTupleCount >= 0);
|
Assert(currentAffectedTupleCount >= 0);
|
||||||
|
|
||||||
#if (PG_VERSION_NUM < 90600)
|
#if (PG_VERSION_NUM < 90600)
|
||||||
|
|
||||||
/* before 9.6, PostgreSQL used a uint32 for this field, so check */
|
/* before 9.6, PostgreSQL used a uint32 for this field, so check */
|
||||||
Assert(currentAffectedTupleCount <= PG_UINT32_MAX);
|
Assert(currentAffectedTupleCount <= 0xFFFFFFFF);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((affectedTupleCount == -1) ||
|
if ((affectedTupleCount == -1) ||
|
||||||
|
|
Loading…
Reference in New Issue