postgres.git / summary / log / commit / refs
commit 67a8cb5cbfffa9f104a5965a2152e5256dd2be2c
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Tue Jan 04 16:21:23 2022 +0000
First released in: 15.0, 10.20, 11.15, 12.10, 13.6, 14.2
Fix silly mistake in Assert
src/backend/access/heap/heapam.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index b0b33072aff..a1bacb0ebf2 100644
--- a/src/backend/access/heap/heapam.c
+++ b/src/backend/access/heap/heapam.c
@@ -4759,7 +4759,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;
[parent: f66885bec0df]