Skip to content

Commit 44fef88

Browse files
committed
a bit more backup_id_of
1 parent 71f8ccf commit 44fef88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backup.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -887,13 +887,13 @@ do_backup(InstanceState *instanceState, pgSetBackupParams *set_backup_params,
887887
pretty_size(current.data_bytes + current.wal_bytes, pretty_bytes, lengthof(pretty_bytes));
888888
else
889889
pretty_size(current.data_bytes, pretty_bytes, lengthof(pretty_bytes));
890-
elog(INFO, "Backup %s resident size: %s", base36enc(current.start_time), pretty_bytes);
890+
elog(INFO, "Backup %s resident size: %s", backup_id_of(&current), pretty_bytes);
891891

892892
if (current.status == BACKUP_STATUS_OK ||
893893
current.status == BACKUP_STATUS_DONE)
894-
elog(INFO, "Backup %s completed", base36enc(current.start_time));
894+
elog(INFO, "Backup %s completed", backup_id_of(&current));
895895
else
896-
elog(ERROR, "Backup %s failed", base36enc(current.start_time));
896+
elog(ERROR, "Backup %s failed", backup_id_of(&current));
897897

898898
/*
899899
* After successful backup completion remove backups
@@ -2034,7 +2034,7 @@ backup_cleanup(bool fatal, void *userdata)
20342034
if (current.status == BACKUP_STATUS_RUNNING && current.end_time == 0)
20352035
{
20362036
elog(WARNING, "Backup %s is running, setting its status to ERROR",
2037-
base36enc(current.start_time));
2037+
backup_id_of(&current));
20382038
current.end_time = time(NULL);
20392039
current.status = BACKUP_STATUS_ERROR;
20402040
write_backup(&current, true);

0 commit comments

Comments
 (0)