fix UnlockRelationForExtension second argument some more
authorRobert Haas <[email protected]>
Thu, 14 Oct 2021 14:29:13 +0000 (10:29 -0400)
committerRobert Haas <[email protected]>
Thu, 14 Oct 2021 14:29:13 +0000 (10:29 -0400)
src/backend/access/conveyor/conveyor.c

index d3d300ac3f00319cf9b48021d166e42dd4c6c913..d4dd28086e9543c383857fa0a77049c37abfc104 100644 (file)
@@ -948,7 +948,7 @@ ConveyorBeltExtend(ConveyorBelt *cb, BlockNumber blkno,
        if (blkno < nblocks)
        {
                *possibly_not_on_disk_blkno = nblocks;
-               UnlockRelationForExtension(cb->cb_rel, cb->cb_fork);
+               UnlockRelationForExtension(cb->cb_rel, ExclusiveLock);
                return ReadBufferExtended(cb->cb_rel, cb->cb_fork, blkno, RBM_NORMAL, NULL);
        }
 
@@ -980,7 +980,7 @@ ConveyorBeltExtend(ConveyorBelt *cb, BlockNumber blkno,
        Assert(BufferGetBlockNumber(buffer) == blkno);
 
        /* Done extending relation. */
-       UnlockRelationForExtension(cb->cb_rel, cb->cb_fork);
+       UnlockRelationForExtension(cb->cb_rel, ExclusiveLock);
 
        /* Remember that the relation is now longer than it used to be. */
        *possibly_not_on_disk_blkno = blkno + 1;