mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 15:54:08 +03:00
Don't forget to flush XLOG_PARAMETER_CHANGE record.
Backpatch to 9.0 where XLOG_PARAMETER_CHANGE record was instroduced.
This commit is contained in:
parent
b18efb86fd
commit
6fe8411ffb
@ -8803,6 +8803,7 @@ XLogReportParameters(void)
|
|||||||
{
|
{
|
||||||
XLogRecData rdata;
|
XLogRecData rdata;
|
||||||
xl_parameter_change xlrec;
|
xl_parameter_change xlrec;
|
||||||
|
XLogRecPtr recptr;
|
||||||
|
|
||||||
xlrec.MaxConnections = MaxConnections;
|
xlrec.MaxConnections = MaxConnections;
|
||||||
xlrec.max_prepared_xacts = max_prepared_xacts;
|
xlrec.max_prepared_xacts = max_prepared_xacts;
|
||||||
@ -8814,7 +8815,8 @@ XLogReportParameters(void)
|
|||||||
rdata.len = sizeof(xlrec);
|
rdata.len = sizeof(xlrec);
|
||||||
rdata.next = NULL;
|
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;
|
ControlFile->MaxConnections = MaxConnections;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user