From cc58553514ea4c54ddf3520953caacd2a8da848e Mon Sep 17 00:00:00 2001 From: anastasia Date: Wed, 3 Feb 2021 18:00:21 +0300 Subject: [PATCH] Refactoring. Cleanup comments --- src/pg_probackup.c | 6 ++++-- src/pg_probackup_state.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pg_probackup.c b/src/pg_probackup.c index 3b6e8a49..3d699094 100644 --- a/src/pg_probackup.c +++ b/src/pg_probackup.c @@ -19,7 +19,7 @@ * * Functions that work with an instance accept instanceState argument, which * includes catalogState, instance_name, - * info about pgdata associated with the instance, + * info about pgdata associated with the instance (see pgState), * various instance config options, and list of backups belonging to the instance. * + function specific options. * @@ -31,6 +31,9 @@ * which includes link to the instanceState, backup_id and backup-specific info. * + function specific options. * + * Functions that work with a postgreSQL instance (i.e. checkdb) accept pgState, + * which includes info about pgdata directory and connection. + * * Portions Copyright (c) 2009-2013, NIPPON TELEGRAPH AND TELEPHONE CORPORATION * Portions Copyright (c) 2015-2019, Postgres Professional * @@ -72,7 +75,6 @@ char backup_instance_path[MAXPGPATH]; */ char arclog_path[MAXPGPATH] = ""; - static CatalogState *catalogState = NULL; /* ================ catalogState (END) =========== */ diff --git a/src/pg_probackup_state.h b/src/pg_probackup_state.h index ab20a55a..19e09632 100644 --- a/src/pg_probackup_state.h +++ b/src/pg_probackup_state.h @@ -2,7 +2,7 @@ * * pg_probackup_state.h: Definitions of internal pg_probackup states * - * Portions Copyright (c) 2021-2018, Postgres Professional + * Portions Copyright (c) 2021, Postgres Professional * *------------------------------------------------------------------------- */