Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 67a8cb5

Browse files
committed
Fix silly mistake in Assert
1 parent f66885b commit 67a8cb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/access/heap/heapam.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -4759,7 +4759,8 @@ heap_lock_tuple(Relation relation, HeapTuple tuple,
47594759
* this assert is slightly different from the equivalent one in
47604760
* heap_delete and heap_update.
47614761
*/
4762-
Assert(TM_WouldBlock || !(tuple->t_data->t_infomask & HEAP_XMAX_INVALID));
4762+
Assert((result == TM_WouldBlock) ||
4763+
!(tuple->t_data->t_infomask & HEAP_XMAX_INVALID));
47634764
Assert(result != TM_Updated ||
47644765
!ItemPointerEquals(&tuple->t_self, &tuple->t_data->t_ctid));
47654766
tmfd->ctid = tuple->t_data->t_ctid;

0 commit comments

Comments
 (0)