Skip to content

Commit a5afc87

Browse files
author
Michael Paquier
committed
Improve a couple of comments in backup.c
1 parent bee3489 commit a5afc87

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

delete.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ do_delete(pgBackupRange *range)
3131
elog(ERROR_ALREADY_RUNNING,
3232
"another pg_arman is running, stop delete.");
3333

34-
/* Get complete list of backup */
34+
/* Get complete list of backups */
3535
backup_list = catalog_get_backup_list(NULL);
3636
if (!backup_list)
3737
elog(ERROR_SYSTEM, "No backup list found, can't process any more.");
3838

3939
/* Find backups to be deleted */
4040
for (i = 0; i < parray_num(backup_list); i++)
4141
{
42-
pgBackup *backup = (pgBackup *)parray_get(backup_list, i);
42+
pgBackup *backup = (pgBackup *) parray_get(backup_list, i);
4343

4444
/* delete backup and update status to DELETED */
4545
if (do_delete)
@@ -173,8 +173,7 @@ pgBackupDeleteFiles(pgBackup *backup)
173173
parray *files;
174174

175175
/*
176-
* If the backup was deleted already, nothing to do and such situation
177-
* is not error.
176+
* If the backup was deleted already, there is nothing to do.
178177
*/
179178
if (backup->status == BACKUP_STATUS_DELETED)
180179
return 0;
@@ -184,7 +183,7 @@ pgBackupDeleteFiles(pgBackup *backup)
184183
elog(INFO, "delete: %s", timestamp);
185184

186185
/*
187-
* update STATUS to BACKUP_STATUS_DELETING in preparation for the case which
186+
* Update STATUS to BACKUP_STATUS_DELETING in preparation for the case which
188187
* the error occurs before deleting all backup files.
189188
*/
190189
if (!check)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy