Fix silly mistake in Assert
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 4 Jan 2022 16:21:23 +0000 (13:21 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 4 Jan 2022 16:21:23 +0000 (13:21 -0300)
src/backend/access/heap/heapam.c

index b0b33072affeeb3a311143ab9e1f587adcc36b78..a1bacb0ebf2a18349c71483675728d9609ccfc8b 100644 (file)
@@ -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;