Don't forget to flush XLOG_PARAMETER_CHANGE record.

Backpatch to 9.0 where XLOG_PARAMETER_CHANGE record was instroduced.
pull/6/head
Fujii Masao 12 years ago
parent 36f7c3a1e0
commit 49638868f8
  1. 4
      src/backend/access/transam/xlog.c

@ -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;

Loading…
Cancel
Save