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

Commit9c0de04

Browse files
committed
Reduce xlog.h inclusion footprint
This file needs xlogreader.h only for the XLogReaderState typedef; butwe can dodge that by forward-declaring it. Many files use xlog.h forreasons other than reading WAL, and it's not good to force all thosefiles to include xlogreader.h, so take it out.Surprisingly, there is no fallout in core code from making this change.Perhaps external code will have to start including xlogreader.h.
1 parentc929b27 commit9c0de04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/include/access/xlog.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include"access/xlogbackup.h"
1515
#include"access/xlogdefs.h"
16-
#include"access/xlogreader.h"
1716
#include"datatype/timestamp.h"
1817
#include"lib/stringinfo.h"
1918
#include"nodes/pg_list.h"
@@ -192,6 +191,7 @@ typedef enum WALAvailability
192191
}WALAvailability;
193192

194193
structXLogRecData;
194+
structXLogReaderState;
195195

196196
externXLogRecPtrXLogInsertRecord(structXLogRecData*rdata,
197197
XLogRecPtrfpw_lsn,
@@ -209,8 +209,8 @@ extern XLogSegNo XLogGetLastRemovedSegno(void);
209209
externvoidXLogSetAsyncXactLSN(XLogRecPtrasyncXactLSN);
210210
externvoidXLogSetReplicationSlotMinimumLSN(XLogRecPtrlsn);
211211

212-
externvoidxlog_redo(XLogReaderState*record);
213-
externvoidxlog_desc(StringInfobuf,XLogReaderState*record);
212+
externvoidxlog_redo(structXLogReaderState*record);
213+
externvoidxlog_desc(StringInfobuf,structXLogReaderState*record);
214214
externconstchar*xlog_identify(uint8info);
215215

216216
externvoidissue_xlog_fsync(intfd,XLogSegNosegno,TimeLineIDtli);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp