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

Commita8603f0

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

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
@@ -8446,6 +8446,7 @@ XLogReportParameters(void)
84468446
{
84478447
XLogRecDatardata;
84488448
xl_parameter_changexlrec;
8449+
XLogRecPtrrecptr;
84498450

84508451
xlrec.MaxConnections=MaxConnections;
84518452
xlrec.max_prepared_xacts=max_prepared_xacts;
@@ -8457,7 +8458,8 @@ XLogReportParameters(void)
84578458
rdata.len=sizeof(xlrec);
84588459
rdata.next=NULL;
84598460

8460-
XLogInsert(RM_XLOG_ID,XLOG_PARAMETER_CHANGE,&rdata);
8461+
recptr=XLogInsert(RM_XLOG_ID,XLOG_PARAMETER_CHANGE,&rdata);
8462+
XLogFlush(recptr);
84618463
}
84628464

84638465
ControlFile->MaxConnections=MaxConnections;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp