Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19de089

Browse files
committed
Fix outdated comment in smgrtruncate()
Commitc5315f4 replaced smgr_fsm_nblocks and smgr_vm_nblocks withsmgr_cached_nblocks, but forgot to update this comment.Author: Kirill ReshkeDiscussion:https://www.postgresql.org/message-id/CALdSSPh9VA6SDSVjrcmSPEYramf%2BrFisK7GqJo1dtRnD3vddmA@mail.gmail.com
1 parent513f447 commit19de089

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 ofsmgr_fsm_nblocks and
737-
*smgr_vm_nblocks, andthese ones too at the next command boundary.
738-
*But these ensure they aren'toutright wrong until then.
736+
* backends to invalidate their copies ofsmgr_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)

[8]ページ先頭

©2009-2025 Movatter.jp