Commit 49638868 authored by Fujii Masao's avatar Fujii Masao

Don't forget to flush XLOG_PARAMETER_CHANGE record.

Backpatch to 9.0 where XLOG_PARAMETER_CHANGE record was instroduced.
parent 36f7c3a1
......@@ -8904,6 +8904,7 @@ XLogReportParameters(void)
{
XLogRecData rdata;
xl_parameter_change xlrec;
XLogRecPtr recptr;
xlrec.MaxConnections = MaxConnections;
xlrec.max_worker_processes = max_worker_processes;
......@@ -8917,7 +8918,8 @@ XLogReportParameters(void)
rdata.len = sizeof(xlrec);
rdata.next = NULL;
XLogInsert(RM_XLOG_ID, XLOG_PARAMETER_CHANGE, &rdata);
recptr = XLogInsert(RM_XLOG_ID, XLOG_PARAMETER_CHANGE, &rdata);
XLogFlush(recptr);
}
ControlFile->MaxConnections = MaxConnections;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment