diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-01-04 13:21:23 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-01-04 13:21:23 -0300 |
commit | 4a8282425f6b6db19a07dcb634b5a670d0289c95 (patch) | |
tree | 85e61709d4a1920979d2072a20d0fa4558528a25 | |
parent | 026a93727c85704cb885a2d83c87a576b4fe2c86 (diff) |
Fix silly mistake in Assert
-rw-r--r-- | src/backend/access/heap/heapam.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index 922378feddc..144bbcdfe7c 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -5095,7 +5095,8 @@ failed: * this assert is slightly different from the equivalent one in * heap_delete and heap_update. */ - Assert(HeapTupleWouldBlock || !(tuple->t_data->t_infomask & HEAP_XMAX_INVALID)); + Assert((result == HeapTupleWouldBlock) || + !(tuple->t_data->t_infomask & HEAP_XMAX_INVALID)); hufd->ctid = tuple->t_data->t_ctid; hufd->xmax = HeapTupleHeaderGetUpdateXid(tuple->t_data); if (result == HeapTupleSelfUpdated) |