diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-07-29 14:23:23 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-07-29 14:23:23 +0300 |
commit | 19de089cdc23373e2f36916017a1e23e8ff4c2f8 (patch) | |
tree | a0d1fb96b527d40895bcdfd9e1247ee3eb32204e | |
parent | 513f4472a4a0d294ca64123627ce7b48ce0ee7c1 (diff) | |
download | postgresql-19de089cdc23373e2f36916017a1e23e8ff4c2f8.tar.gz postgresql-19de089cdc23373e2f36916017a1e23e8ff4c2f8.zip |
Fix outdated comment in smgrtruncate()
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%2BrFisK7GqJo1dtRnD3vddmA@mail.gmail.com
-rw-r--r-- | src/backend/storage/smgr/smgr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/storage/smgr/smgr.c b/src/backend/storage/smgr/smgr.c index a691aed1f40..7b9fa103eff 100644 --- a/src/backend/storage/smgr/smgr.c +++ b/src/backend/storage/smgr/smgr.c @@ -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]; } |