From a9a4a7ad565b136cbee735d4bb505d98d06da522 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Mon, 15 Jun 2020 10:14:40 -0700 Subject: code: replace most remaining uses of 'master'. Author: Andres Freund Reviewed-By: David Steele Discussion: https://postgr.es/m/20200615182235.x7lch5n6kcjq4aue@alap3.anarazel.de --- src/backend/access/transam/xlog.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/backend/access/transam/xlog.c') diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 6f9c5513e3a..28daf72a503 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -562,11 +562,12 @@ typedef struct XLogCtlInsert char pad[PG_CACHE_LINE_SIZE]; /* - * fullPageWrites is the master copy used by all backends to determine - * whether to write full-page to WAL, instead of using process-local one. - * This is required because, when full_page_writes is changed by SIGHUP, - * we must WAL-log it before it actually affects WAL-logging by backends. - * Checkpointer sets at startup or after SIGHUP. + * fullPageWrites is the authoritative value used by all backends to + * determine whether to write full-page image to WAL. This shared value, + * instead of the process-local fullPageWrites, is required because, when + * full_page_writes is changed by SIGHUP, we must WAL-log it before it + * actually affects WAL-logging by backends. Checkpointer sets at startup + * or after SIGHUP. * * To read these fields, you must hold an insertion lock. To modify them, * you must hold ALL the locks. @@ -8366,8 +8367,9 @@ GetRedoRecPtr(void) /* * The possibly not up-to-date copy in XlogCtl is enough. Even if we - * grabbed a WAL insertion lock to read the master copy, someone might - * update it just after we've released the lock. + * grabbed a WAL insertion lock to read the authoritative value in + * Insert->RedoRecPtr, someone might update it just after we've released + * the lock. */ SpinLockAcquire(&XLogCtl->info_lck); ptr = XLogCtl->RedoRecPtr; -- cgit v1.2.3