1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-13 11:53:59 +02:00

PGPRO-2573: minor comment fixes

This commit is contained in:
Grigory Smolkin 2019-03-25 17:47:02 +03:00
parent 281f34d770
commit 3256dd1988

View File

@ -138,8 +138,7 @@ int do_retention(void)
if (instance_config.retention_redundancy == 0 && if (instance_config.retention_redundancy == 0 &&
instance_config.retention_window == 0) instance_config.retention_window == 0)
{ {
/* Retention is disabled but we still can cleanup /* Retention is disabled but we still can cleanup wal
* failed backups and wal
*/ */
elog(WARNING, "Retention policy is not set"); elog(WARNING, "Retention policy is not set");
if (!delete_wal) if (!delete_wal)
@ -335,17 +334,29 @@ do_retention_internal(void)
* PAGEb1 <- keep * PAGEb1 <- keep
* PAGEa2 <- keep * PAGEa2 <- keep
* PAGEa1 <- keep * PAGEa1 <- keep
* FULLb <- in purge_list * FULLb <- in purge_list
* FULLa <- in purge_list * FULLa <- in purge_list
*/ */
/* Go to purge */ /* Go to purge */
if (delete_expired && !merge_expired) if (delete_expired && !merge_expired)
goto purge; goto purge;
/* IMPORTANT: we can merge to only those FULL backups, that are NOT /* IMPORTANT: we can merge to only those FULL backup, that is NOT
* guarded by retention and only from those incremental backups that * guarded by retention and final targets of such merges must be
* are guarded by retention !!! * incremental backup that is guarded by retention !!!
*
*
* PAGE4 E
* PAGE3 D
* --------retention window ---
* PAGE2 C
* PAGE1 B
* FULL A
*
* after retention merge:
* PAGE4 E
* FULL D
*/ */
/* Merging happens here */ /* Merging happens here */