Skip to content

Commit f9db153

Browse files
committed
Fix silly mistake in Assert
1 parent f185f35 commit f9db153

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
@@ -4778,7 +4778,8 @@ heap_lock_tuple(Relation relation, HeapTuple tuple,
47784778
* this assert is slightly different from the equivalent one in
47794779
* heap_delete and heap_update.
47804780
*/
4781-
Assert(TM_WouldBlock || !(tuple->t_data->t_infomask & HEAP_XMAX_INVALID));
4781+
Assert((result == TM_WouldBlock) ||
4782+
!(tuple->t_data->t_infomask & HEAP_XMAX_INVALID));
47824783
Assert(result != TM_Updated ||
47834784
!ItemPointerEquals(&tuple->t_self, &tuple->t_data->t_ctid));
47844785
tmfd->ctid = tuple->t_data->t_ctid;

0 commit comments

Comments
 (0)