mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-28 09:33:54 +02:00
Fix show backup mode.
This commit is contained in:
parent
7aa2611064
commit
c084fee35c
@ -93,7 +93,7 @@ typedef enum BackupStatus
|
||||
|
||||
typedef enum BackupMode
|
||||
{
|
||||
BACKUP_MODE_INVALID,
|
||||
BACKUP_MODE_INVALID = 0,
|
||||
BACKUP_MODE_DIFF_PAGE, /* differential page backup */
|
||||
BACKUP_MODE_DIFF_PTRACK, /* differential page backup with ptrack system*/
|
||||
BACKUP_MODE_FULL /* full backup */
|
||||
|
6
show.c
6
show.c
@ -172,7 +172,7 @@ show_backup_list(FILE *out, parray *backup_list)
|
||||
for (i = 0; i < parray_num(backup_list); i++)
|
||||
{
|
||||
pgBackup *backup;
|
||||
const char *modes[] = { "", "PAGE", "PTRACK", "FULL", "PAGE+STREAM", "PTRACK+STERAM", "FULL+STREAM"};
|
||||
const char *modes[] = { "", "PAGE", "PTRACK", "FULL", "", "PAGE+STREAM", "PTRACK+STREAM", "FULL+STREAM"};
|
||||
TimeLineID parent_tli;
|
||||
char timestamp[20];
|
||||
char duration[20] = "----";
|
||||
@ -196,10 +196,10 @@ show_backup_list(FILE *out, parray *backup_list)
|
||||
/* Get parent timeline before printing */
|
||||
parent_tli = get_parent_tli(backup->tli);
|
||||
|
||||
fprintf(out, "%-8s %-19s %-12s %2d /%2d %5s %6s %s \n",
|
||||
fprintf(out, "%-8s %-19s %-13s %2d /%2d %5s %6s %s \n",
|
||||
base36enc(backup->start_time),
|
||||
timestamp,
|
||||
modes[backup->backup_mode*(backup->stream+1)],
|
||||
modes[backup->backup_mode + (BACKUP_MODE_FULL + 1)*backup->stream],
|
||||
backup->tli,
|
||||
parent_tli,
|
||||
duration,
|
||||
|
Loading…
Reference in New Issue
Block a user