Fix silly mistake in Assert

This commit is contained in:
Alvaro Herrera 2022-01-04 13:21:23 -03:00
parent 6b681cd056
commit 397b439488
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE
1 changed files with 2 additions and 1 deletions

View File

@ -4536,7 +4536,8 @@ failed:
* this assert is slightly different from the equivalent one in
* heap_delete and heap_update.
*/
Assert(TM_WouldBlock || !(tuple->t_data->t_infomask & HEAP_XMAX_INVALID));
Assert((result == TM_WouldBlock) ||
!(tuple->t_data->t_infomask & HEAP_XMAX_INVALID));
Assert(result != TM_Updated ||
!ItemPointerEquals(&tuple->t_self, &tuple->t_data->t_ctid));
tmfd->ctid = tuple->t_data->t_ctid;