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

Commit245e14e

Browse files
committed
Fix inconsistent comments for some function declarations in headers
Some of the headers list a couple of function prototypes located in adifferent file than what is referred to. This fixes a couple ofplaces where this inconsistency exists.Author: Richard GuoDiscussion:https://postgr.es/m/CAMbWs4__RdcSNXPa7L62Ozvo_Q4LvT60o3Bnp8yrQ_m9y5CKvg@mail.gmail.com
1 parent56f2c7b commit245e14e

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

‎src/include/access/nbtxlog.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,14 @@ typedef struct xl_btree_newroot
342342
* prototypes for functions in nbtxlog.c
343343
*/
344344
externvoidbtree_redo(XLogReaderState*record);
345-
externvoidbtree_desc(StringInfobuf,XLogReaderState*record);
346-
externconstchar*btree_identify(uint8info);
347345
externvoidbtree_xlog_startup(void);
348346
externvoidbtree_xlog_cleanup(void);
349347
externvoidbtree_mask(char*pagedata,BlockNumberblkno);
350348

349+
/*
350+
* prototypes for functions in nbtdesc.c
351+
*/
352+
externvoidbtree_desc(StringInfobuf,XLogReaderState*record);
353+
externconstchar*btree_identify(uint8info);
354+
351355
#endif/* NBTXLOG_H */

‎src/include/replication/walreceiver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ walrcv_clear_result(WalRcvExecResult *walres)
455455
/* prototypes for functions in walreceiver.c */
456456
externvoidWalReceiverMain(void)pg_attribute_noreturn();
457457
externvoidProcessWalRcvInterrupts(void);
458+
externvoidWalRcvForceReply(void);
458459

459460
/* prototypes for functions in walreceiverfuncs.c */
460461
externSizeWalRcvShmemSize(void);
@@ -469,6 +470,5 @@ extern XLogRecPtr GetWalRcvFlushRecPtr(XLogRecPtr *latestChunkStart, TimeLineID
469470
externXLogRecPtrGetWalRcvWriteRecPtr(void);
470471
externintGetReplicationApplyDelay(void);
471472
externintGetReplicationTransferLatency(void);
472-
externvoidWalRcvForceReply(void);
473473

474474
#endif/* _WALRECEIVER_H */

‎src/include/storage/bufmgr.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ extern void IncrBufferRefCount(Buffer buffer);
123123
externBufferReleaseAndReadBuffer(Bufferbuffer,Relationrelation,
124124
BlockNumberblockNum);
125125

126-
externvoidInitBufferPool(void);
127126
externvoidInitBufferPoolAccess(void);
128127
externvoidAtEOXact_Buffers(boolisCommit);
129128
externvoidPrintBufferLeakWarning(Bufferbuffer);
@@ -154,7 +153,6 @@ extern XLogRecPtr BufferGetLSNAtomic(Buffer buffer);
154153
#ifdefNOT_USED
155154
externvoidPrintPinnedBufs(void);
156155
#endif
157-
externSizeBufferShmemSize(void);
158156
externvoidBufferGetTag(Bufferbuffer,RelFileLocator*rlocator,
159157
ForkNumber*forknum,BlockNumber*blknum);
160158

@@ -173,10 +171,15 @@ extern void AbortBufferIO(void);
173171
externvoidBufmgrCommit(void);
174172
externboolBgBufferSync(structWritebackContext*wb_context);
175173

176-
externvoidAtProcExit_LocalBuffers(void);
177-
178174
externvoidTestForOldSnapshot_impl(Snapshotsnapshot,Relationrelation);
179175

176+
/* in buf_init.c */
177+
externvoidInitBufferPool(void);
178+
externSizeBufferShmemSize(void);
179+
180+
/* in localbuf.c */
181+
externvoidAtProcExit_LocalBuffers(void);
182+
180183
/* in freelist.c */
181184
externBufferAccessStrategyGetAccessStrategy(BufferAccessStrategyTypebtype);
182185
externvoidFreeAccessStrategy(BufferAccessStrategystrategy);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp