aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-09-28 09:58:44 +0900
committerMichael Paquier <michael@paquier.xyz>2022-09-28 09:58:44 +0900
commit2e560b974ec7f7e8fe47e765e7c276422015ff3b (patch)
treea9ffc65a349849913b9a198d84c041b64670b9e0 /src/backend/access/transam/xlog.c
parent0aaa7cf6989ef6709f2bade96c4c43c7195afe17 (diff)
downloadpostgresql-2e560b974ec7f7e8fe47e765e7c276422015ff3b.tar.gz
postgresql-2e560b974ec7f7e8fe47e765e7c276422015ff3b.zip
Fix some comments of do_pg_backup_start() and do_pg_backup_stop()
Both functions referred to an incorrect variable name, so make the whole more consistent. Oversight in 7d70809. Author: Kyotaro Horiguchi, Bharath Rupireddy Discussion: https://postgr.es/m/20220927.172427.467118514018439476.horikyota.ntt@gmail.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index dff9b8d2366..35fac945cb1 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -8316,9 +8316,9 @@ issue_xlog_fsync(int fd, XLogSegNo segno, TimeLineID tli)
* symlinks while extracting files from tar. However for consistency and
* platform-independence, we do it the same way everywhere.
*
- * It fills in backup_state with the information required for the backup,
- * such as the minimum WAL location that must be present to restore from
- * this backup (starttli) and the corresponding timeline ID (starttli).
+ * It fills in "state" with the information required for the backup, such
+ * as the minimum WAL location that must be present to restore from this
+ * backup (starttli) and the corresponding timeline ID (starttli).
*
* Every successfully started backup must be stopped by calling
* do_pg_backup_stop() or do_pg_abort_backup(). There can be many
@@ -8634,7 +8634,7 @@ get_backup_status(void)
* file (if required), resets sessionBackupState and so on. It can optionally
* wait for WAL segments to be archived.
*
- * backup_state is filled with the information necessary to restore from this
+ * "state" is filled with the information necessary to restore from this
* backup with its stop LSN (stoppoint), its timeline ID (stoptli), etc.
*
* It is the responsibility of the caller of this function to verify the