]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
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 827c43e0ccb93c6efc731b86eb7a917f7a1a2d5e..0807b4031e6d0910facf6d9e1551def42118c195 100644 (file)
@@ -4505,7 +4505,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;