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

Commitb12f994

Browse files
committed
Don't forget to flush XLOG_PARAMETER_CHANGE record.
Backpatch to 9.0 where XLOG_PARAMETER_CHANGE record was instroduced.
1 parenta2e3df7 commitb12f994

File tree

1 file changed

+3
-1
lines changed
  • src/backend/access/transam

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7821,6 +7821,7 @@ XLogReportParameters(void)
78217821
{
78227822
XLogRecDatardata;
78237823
xl_parameter_changexlrec;
7824+
XLogRecPtrrecptr;
78247825

78257826
xlrec.MaxConnections=MaxConnections;
78267827
xlrec.max_prepared_xacts=max_prepared_xacts;
@@ -7832,7 +7833,8 @@ XLogReportParameters(void)
78327833
rdata.len=sizeof(xlrec);
78337834
rdata.next=NULL;
78347835

7835-
XLogInsert(RM_XLOG_ID,XLOG_PARAMETER_CHANGE,&rdata);
7836+
recptr=XLogInsert(RM_XLOG_ID,XLOG_PARAMETER_CHANGE,&rdata);
7837+
XLogFlush(recptr);
78367838
}
78377839

78387840
ControlFile->MaxConnections=MaxConnections;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp