1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-24 11:46:31 +02:00

PGPRO-533: Replace instance-name by instance, fix typos

This commit is contained in:
Arthur Zakirov 2018-05-31 20:31:12 +03:00
parent ceaa2ce9cd
commit 6df8c2aaec

View File

@ -494,7 +494,7 @@ show_instance_json(parray *backup_list)
/* Begin of instance object */ /* Begin of instance object */
json_add(buf, JT_BEGIN_OBJECT); json_add(buf, JT_BEGIN_OBJECT);
json_add_value(buf, "instance-name", instance_name, false); json_add_value(buf, "instance", instance_name, false);
json_add_key(buf, "backups", true); json_add_key(buf, "backups", true);
@ -517,13 +517,13 @@ show_instance_json(parray *backup_list)
json_add(buf, JT_BEGIN_OBJECT); json_add(buf, JT_BEGIN_OBJECT);
json_add_value(buf, "id", base36enc(backup->start_time), true); json_add_value(buf, "id", base36enc(backup->start_time), false);
if (backup->parent_backup != 0) if (backup->parent_backup != 0)
json_add_value(buf, "parent-backup-id", json_add_value(buf, "parent-backup-id",
base36enc(backup->parent_backup), true); base36enc(backup->parent_backup), true);
json_add_value(buf, "backup-mode", pgBackupGetBackupMode(backup), false); json_add_value(buf, "backup-mode", pgBackupGetBackupMode(backup), true);
json_add_value(buf, "wal", backup->stream ? "STREAM": "ARCHIVE", true); json_add_value(buf, "wal", backup->stream ? "STREAM": "ARCHIVE", true);