From a5afc8758e702f469cc0059741936215bbd21907 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Mon, 18 Jan 2016 15:24:28 +0900 Subject: [PATCH] Improve a couple of comments in backup.c --- delete.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/delete.c b/delete.c index 1f81b1c6..d271bf58 100644 --- a/delete.c +++ b/delete.c @@ -31,7 +31,7 @@ do_delete(pgBackupRange *range) elog(ERROR_ALREADY_RUNNING, "another pg_arman is running, stop delete."); - /* Get complete list of backup */ + /* Get complete list of backups */ backup_list = catalog_get_backup_list(NULL); if (!backup_list) elog(ERROR_SYSTEM, "No backup list found, can't process any more."); @@ -39,7 +39,7 @@ do_delete(pgBackupRange *range) /* Find backups to be deleted */ for (i = 0; i < parray_num(backup_list); i++) { - pgBackup *backup = (pgBackup *)parray_get(backup_list, i); + pgBackup *backup = (pgBackup *) parray_get(backup_list, i); /* delete backup and update status to DELETED */ if (do_delete) @@ -173,8 +173,7 @@ pgBackupDeleteFiles(pgBackup *backup) parray *files; /* - * If the backup was deleted already, nothing to do and such situation - * is not error. + * If the backup was deleted already, there is nothing to do. */ if (backup->status == BACKUP_STATUS_DELETED) return 0; @@ -184,7 +183,7 @@ pgBackupDeleteFiles(pgBackup *backup) elog(INFO, "delete: %s", timestamp); /* - * update STATUS to BACKUP_STATUS_DELETING in preparation for the case which + * Update STATUS to BACKUP_STATUS_DELETING in preparation for the case which * the error occurs before deleting all backup files. */ if (!check)