Fix outdated comment in smgrtruncate()
authorHeikki Linnakangas <[email protected]>
Mon, 29 Jul 2024 11:23:23 +0000 (14:23 +0300)
committerHeikki Linnakangas <[email protected]>
Mon, 29 Jul 2024 11:23:23 +0000 (14:23 +0300)
Commit c5315f4f44 replaced smgr_fsm_nblocks and smgr_vm_nblocks with
smgr_cached_nblocks, but forgot to update this comment.

Author: Kirill Reshke
Discussion: https://www.postgresql.org/message-id/CALdSSPh9VA6SDSVjrcmSPEYramf%[email protected]

src/backend/storage/smgr/smgr.c

index a691aed1f405f0116302fd2e6ad9a9154eaacb2f..7b9fa103eff6b884a10402f2950f0119815a3750 100644 (file)
@@ -733,9 +733,9 @@ smgrtruncate(SMgrRelation reln, ForkNumber *forknum, int nforks, BlockNumber *nb
        /*
         * We might as well update the local smgr_cached_nblocks values. The
         * smgr cache inval message that this function sent will cause other
-        * backends to invalidate their copies of smgr_fsm_nblocks and
-        * smgr_vm_nblocks, and these ones too at the next command boundary.
-        * But these ensure they aren't outright wrong until then.
+        * backends to invalidate their copies of smgr_cached_nblocks, and
+        * these ones too at the next command boundary. But ensure they aren't
+        * outright wrong until then.
         */
        reln->smgr_cached_nblocks[forknum[i]] = nblocks[i];
    }