diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-08-04 17:36:21 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-08-04 17:36:21 +0900 |
commit | 245e14e28b298e6ed00ea8d8c607b62387c9da92 (patch) | |
tree | 056ae7cee2c758f4fe62708843eb644d1b739531 /src/include/storage/bufmgr.h | |
parent | 56f2c7b58bda00ea5ecc56a93467ed9eae6b3db7 (diff) | |
download | postgresql-245e14e28b298e6ed00ea8d8c607b62387c9da92.tar.gz postgresql-245e14e28b298e6ed00ea8d8c607b62387c9da92.zip |
Fix inconsistent comments for some function declarations in headers
Some of the headers list a couple of function prototypes located in a
different file than what is referred to. This fixes a couple of
places where this inconsistency exists.
Author: Richard Guo
Discussion: https://postgr.es/m/CAMbWs4__RdcSNXPa7L62Ozvo_Q4LvT60o3Bnp8yrQ_m9y5CKvg@mail.gmail.com
Diffstat (limited to 'src/include/storage/bufmgr.h')
-rw-r--r-- | src/include/storage/bufmgr.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h index bf8cce7ccf6..6f4dfa09602 100644 --- a/src/include/storage/bufmgr.h +++ b/src/include/storage/bufmgr.h @@ -123,7 +123,6 @@ extern void IncrBufferRefCount(Buffer buffer); extern Buffer ReleaseAndReadBuffer(Buffer buffer, Relation relation, BlockNumber blockNum); -extern void InitBufferPool(void); extern void InitBufferPoolAccess(void); extern void AtEOXact_Buffers(bool isCommit); extern void PrintBufferLeakWarning(Buffer buffer); @@ -154,7 +153,6 @@ extern XLogRecPtr BufferGetLSNAtomic(Buffer buffer); #ifdef NOT_USED extern void PrintPinnedBufs(void); #endif -extern Size BufferShmemSize(void); extern void BufferGetTag(Buffer buffer, RelFileLocator *rlocator, ForkNumber *forknum, BlockNumber *blknum); @@ -173,10 +171,15 @@ extern void AbortBufferIO(void); extern void BufmgrCommit(void); extern bool BgBufferSync(struct WritebackContext *wb_context); -extern void AtProcExit_LocalBuffers(void); - extern void TestForOldSnapshot_impl(Snapshot snapshot, Relation relation); +/* in buf_init.c */ +extern void InitBufferPool(void); +extern Size BufferShmemSize(void); + +/* in localbuf.c */ +extern void AtProcExit_LocalBuffers(void); + /* in freelist.c */ extern BufferAccessStrategy GetAccessStrategy(BufferAccessStrategyType btype); extern void FreeAccessStrategy(BufferAccessStrategy strategy); |