]> 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 de4204f75509d4c452371f035a60494f915b2f29..834435cdf725d1ea851a0bd8ac11975ffc6862c1 100644 (file)
@@ -5241,7 +5241,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)