mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08: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
4859a710ea
commit
0af5fd82e0
@ -7955,6 +7955,7 @@ XLogReportParameters(void)
|
||||
{
|
||||
XLogRecData rdata;
|
||||
xl_parameter_change xlrec;
|
||||
XLogRecPtr recptr;
|
||||
|
||||
xlrec.MaxConnections = MaxConnections;
|
||||
xlrec.max_prepared_xacts = max_prepared_xacts;
|
||||
@ -7966,7 +7967,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…
Reference in New Issue
Block a user