@@ -8442,6 +8442,9 @@ XLogReportParameters(void)
84428442/*
84438443 * Update full_page_writes in shared memory, and write an
84448444 * XLOG_FPW_CHANGE record if necessary.
8445+ *
8446+ * Note: this function assumes there is no other process running
8447+ * concurrently that could update it.
84458448 */
84468449void
84478450UpdateFullPageWrites (void )
@@ -8452,8 +8455,8 @@ UpdateFullPageWrites(void)
84528455 * Do nothing if full_page_writes has not been changed.
84538456 *
84548457 * It's safe to check the shared full_page_writes without the lock,
8455- * because wecan guarantee that there is no concurrently running
8456- *process which can update it.
8458+ * because weassume that there is no concurrently running process
8459+ * which can update it.
84578460 */
84588461if (fullPageWrites == Insert -> fullPageWrites )
84598462return ;
@@ -8490,7 +8493,6 @@ UpdateFullPageWrites(void)
84908493XLogInsert (RM_XLOG_ID ,XLOG_FPW_CHANGE ,& rdata );
84918494}
84928495
8493-
84948496if (!fullPageWrites )
84958497{
84968498LWLockAcquire (WALInsertLock ,LW_EXCLUSIVE );