Fix code comments still referring to pg_start/stop_backup()
authorMichael Paquier <[email protected]>
Fri, 1 Jul 2022 00:37:17 +0000 (09:37 +0900)
committerMichael Paquier <[email protected]>
Fri, 1 Jul 2022 00:37:17 +0000 (09:37 +0900)
pg_start_backup() and pg_stop_backup() have been respectively renamed to
pg_backup_start() and pg_backup_stop() as of 39969e2, but a few comments
did not get the call.

Reviewed-by: Kyotaro Horiguchi, David Steele
Discussion: https://postgr.es/m/YrqGlj1+4DF3dbZ/@paquier.xyz

src/backend/access/transam/xlogrecovery.c
src/backend/replication/basebackup.c

index 6eba62642026d47d91bb93d256dee1c2eec2ea46..e23451b0f1099b87e1794da7912c4ca8747960e3 100644 (file)
@@ -716,7 +716,7 @@ InitWalRecovery(ControlFileData *ControlFile, bool *wasShutdown_ptr,
         * know how far we need to replay the WAL before we reach consistency.
         * This can happen for example if a base backup is taken from a
         * running server using an atomic filesystem snapshot, without calling
-        * pg_start/stop_backup. Or if you just kill a running primary server
+        * pg_backup_start/stop. Or if you just kill a running primary server
         * and put it into archive recovery by creating a recovery signal
         * file.
         *
index 5244823ff8592ba917b4ea5ed86777116ea9a294..95440013c05c0d9f81bfbbcddd9da78f39fd7810 100644 (file)
@@ -16,7 +16,7 @@
 #include <unistd.h>
 #include <time.h>
 
-#include "access/xlog_internal.h"  /* for pg_start/stop_backup */
+#include "access/xlog_internal.h"  /* for pg_backup_start/stop */
 #include "common/compression.h"
 #include "common/file_perm.h"
 #include "commands/defrem.h"