Commit 34602b0a authored by Teodor Sigaev's avatar Teodor Sigaev

Remove unused variable in non-assert-enabled build

Use field of structure in Assert directly

Jeff Janes
parent 2fa55f26
...@@ -459,11 +459,10 @@ index_truncate_tuple(TupleDesc tupleDescriptor, IndexTuple olditup, ...@@ -459,11 +459,10 @@ index_truncate_tuple(TupleDesc tupleDescriptor, IndexTuple olditup,
Datum values[INDEX_MAX_KEYS]; Datum values[INDEX_MAX_KEYS];
bool isnull[INDEX_MAX_KEYS]; bool isnull[INDEX_MAX_KEYS];
IndexTuple newitup; IndexTuple newitup;
int indnatts = tupleDescriptor->natts;
Assert(indnatts <= INDEX_MAX_KEYS); Assert(tupleDescriptor->natts <= INDEX_MAX_KEYS);
Assert(new_indnatts > 0); Assert(new_indnatts > 0);
Assert(new_indnatts < indnatts); Assert(new_indnatts < tupleDescriptor->natts);
index_deform_tuple(olditup, tupleDescriptor, values, isnull); index_deform_tuple(olditup, tupleDescriptor, values, isnull);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment