From cd9c1b3e197a9b53b840dcc87eb41b04d601a5f9 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 16 Nov 2020 19:42:55 -0300 Subject: Rename PGPROC->vacuumFlags to statusFlags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With more flags associated to a PGPROC entry that are not related to vacuum (currently existing or planned), the name "statusFlags" describes its purpose better. (The same is done to the mirroring PROC_HDR->vacuumFlags.) No functional changes in this commit. This was suggested first by Hari Babu Kommi in [1] and then by Michael Paquier at [2]. [1] https://postgr.es/m/CAJrrPGcsDC-oy1AhqH0JkXYa0Z2AgbuXzHPpByLoBGMxfOZMEQ@mail.gmail.com [2] https://postgr.es/m/20200820060929.GB3730@paquier.xyz Author: Dmitry Dolgov <9erthalion6@gmail.com> Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/20201116182446.qcg3o6szo2zookyr@localhost --- src/backend/replication/logical/logical.c | 4 ++-- src/backend/replication/slot.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/replication') diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c index d5cfbeaa4a..f1f4df7d70 100644 --- a/src/backend/replication/logical/logical.c +++ b/src/backend/replication/logical/logical.c @@ -182,8 +182,8 @@ StartupDecodingContext(List *output_plugin_options, if (!IsTransactionOrTransactionBlock()) { LWLockAcquire(ProcArrayLock, LW_EXCLUSIVE); - MyProc->vacuumFlags |= PROC_IN_LOGICAL_DECODING; - ProcGlobal->vacuumFlags[MyProc->pgxactoff] = MyProc->vacuumFlags; + MyProc->statusFlags |= PROC_IN_LOGICAL_DECODING; + ProcGlobal->statusFlags[MyProc->pgxactoff] = MyProc->statusFlags; LWLockRelease(ProcArrayLock); } diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c index 09be1d8c48..5ed955ba0b 100644 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@ -528,8 +528,8 @@ ReplicationSlotRelease(void) /* might not have been set when we've been a plain slot */ LWLockAcquire(ProcArrayLock, LW_EXCLUSIVE); - MyProc->vacuumFlags &= ~PROC_IN_LOGICAL_DECODING; - ProcGlobal->vacuumFlags[MyProc->pgxactoff] = MyProc->vacuumFlags; + MyProc->statusFlags &= ~PROC_IN_LOGICAL_DECODING; + ProcGlobal->statusFlags[MyProc->pgxactoff] = MyProc->statusFlags; LWLockRelease(ProcArrayLock); } -- cgit v1.2.1