Skip to content

Commit 397b439

Browse files
committed
Fix silly mistake in Assert
1 parent 6b681cd commit 397b439

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/access/heap/heapam.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4536,7 +4536,8 @@ heap_lock_tuple(Relation relation, HeapTuple tuple,
45364536
* this assert is slightly different from the equivalent one in
45374537
* heap_delete and heap_update.
45384538
*/
4539-
Assert(TM_WouldBlock || !(tuple->t_data->t_infomask & HEAP_XMAX_INVALID));
4539+
Assert((result == TM_WouldBlock) ||
4540+
!(tuple->t_data->t_infomask & HEAP_XMAX_INVALID));
45404541
Assert(result != TM_Updated ||
45414542
!ItemPointerEquals(&tuple->t_self, &tuple->t_data->t_ctid));
45424543
tmfd->ctid = tuple->t_data->t_ctid;

0 commit comments

Comments
 (0)