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

Commit25dcc9d

Browse files
committed
Make XLogReaderInvalReadState static
This function is only used by xlogreader.c itself, so there's no need toexport it. It was introduced by commit3b02ea4 with the apparentintention that it could be used externally, but I couldn't find anyexternal code calling it.I (Álvaro) couldn't resist the urge to sort nearby function prototypesproperly while at it.Author: Antonin HouskaDiscussion:https://postgr.es/m/14984.1554998742@spoje.net
1 parentfe66125 commit25dcc9d

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

‎src/backend/access/transam/xlogreader.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@
3030
#include"utils/memutils.h"
3131
#endif
3232

33-
staticboolallocate_recordbuf(XLogReaderState*state,uint32reclength);
3433

34+
staticvoidreport_invalid_record(XLogReaderState*state,constchar*fmt,...)
35+
pg_attribute_printf(2,3);
36+
staticboolallocate_recordbuf(XLogReaderState*state,uint32reclength);
37+
staticintReadPageInternal(XLogReaderState*state,XLogRecPtrpageptr,
38+
intreqLen);
39+
staticvoidXLogReaderInvalReadState(XLogReaderState*state);
3540
staticboolValidXLogRecordHeader(XLogReaderState*state,XLogRecPtrRecPtr,
3641
XLogRecPtrPrevRecPtr,XLogRecord*record,boolrandAccess);
3742
staticboolValidXLogRecord(XLogReaderState*state,XLogRecord*record,
3843
XLogRecPtrrecptr);
39-
staticintReadPageInternal(XLogReaderState*state,XLogRecPtrpageptr,
40-
intreqLen);
41-
staticvoidreport_invalid_record(XLogReaderState*state,constchar*fmt,...)pg_attribute_printf(2,3);
42-
4344
staticvoidResetDecoder(XLogReaderState*state);
4445

4546
/* size of the buffer allocated for error message. */
@@ -621,7 +622,7 @@ ReadPageInternal(XLogReaderState *state, XLogRecPtr pageptr, int reqLen)
621622
/*
622623
* Invalidate the xlogreader's read state to force a re-read.
623624
*/
624-
void
625+
staticvoid
625626
XLogReaderInvalReadState(XLogReaderState*state)
626627
{
627628
state->readSegNo=0;

‎src/include/access/xlogreader.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,9 @@ extern struct XLogRecord *XLogReadRecord(XLogReaderState *state,
216216
externboolXLogReaderValidatePageHeader(XLogReaderState*state,
217217
XLogRecPtrrecptr,char*phdr);
218218

219-
/* Invalidate read state */
220-
externvoidXLogReaderInvalReadState(XLogReaderState*state);
221-
222219
#ifdefFRONTEND
223220
externXLogRecPtrXLogFindNextRecord(XLogReaderState*state,XLogRecPtrRecPtr);
224221
#endif/* FRONTEND */
225-
226222
/* Functions for decoding an XLogRecord */
227223

228224
externboolDecodeXLogRecord(XLogReaderState*state,XLogRecord*record,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp