mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
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
This commit is contained in:
@@ -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
|
* We might as well update the local smgr_cached_nblocks values. The
|
||||||
* smgr cache inval message that this function sent will cause other
|
* smgr cache inval message that this function sent will cause other
|
||||||
* backends to invalidate their copies of smgr_fsm_nblocks and
|
* backends to invalidate their copies of smgr_cached_nblocks, and
|
||||||
* smgr_vm_nblocks, and these ones too at the next command boundary.
|
* these ones too at the next command boundary. But ensure they aren't
|
||||||
* But these ensure they aren't outright wrong until then.
|
* outright wrong until then.
|
||||||
*/
|
*/
|
||||||
reln->smgr_cached_nblocks[forknum[i]] = nblocks[i];
|
reln->smgr_cached_nblocks[forknum[i]] = nblocks[i];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user