diff options
author | Fujii Masao <fujii@postgresql.org> | 2014-03-26 02:12:39 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2014-03-26 02:12:39 +0900 |
commit | 49638868f81f05e9ea4799e6c6148b76b47da83d (patch) | |
tree | 87d3b9c7a2cfca63fc655dbd2be07d7e4d5499dd /src/backend/access/transam/xlog.c | |
parent | 36f7c3a1e019d16a83a363958c3f3927692821d9 (diff) | |
download | postgresql-49638868f81f05e9ea4799e6c6148b76b47da83d.tar.gz postgresql-49638868f81f05e9ea4799e6c6148b76b47da83d.zip |
Don't forget to flush XLOG_PARAMETER_CHANGE record.
Backpatch to 9.0 where XLOG_PARAMETER_CHANGE record was instroduced.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 02cb5e50ab2..b573185122f 100644 --- a/src/backend/access/transam/xlog.c +++ b/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; |