Skip to content

Commit 19de089

Browse files
committed
Fix outdated comment in smgrtruncate()
Commit c5315f4 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
1 parent 513f447 commit 19de089

File tree

1 file changed

+3
-3
lines changed
  • src/backend/storage/smgr

1 file changed

+3
-3
lines changed

src/backend/storage/smgr/smgr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,9 @@ smgrtruncate(SMgrRelation reln, ForkNumber *forknum, int nforks, BlockNumber *nb
733733
/*
734734
* We might as well update the local smgr_cached_nblocks values. The
735735
* smgr cache inval message that this function sent will cause other
736-
* backends to invalidate their copies of smgr_fsm_nblocks and
737-
* smgr_vm_nblocks, and these ones too at the next command boundary.
738-
* But these ensure they aren't outright wrong until then.
736+
* backends to invalidate their copies of smgr_cached_nblocks, and
737+
* these ones too at the next command boundary. But ensure they aren't
738+
* outright wrong until then.
739739
*/
740740
reln->smgr_cached_nblocks[forknum[i]] = nblocks[i];
741741
}

0 commit comments

Comments
 (0)