1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-11 11:41:33 +02:00

check for interrupt when running show

This commit is contained in:
Grigory Smolkin 2020-10-30 02:33:21 +03:00
parent 3df428871d
commit e8def1d344

View File

@ -101,6 +101,9 @@ do_show(const char *instance_name, time_t requested_backup_id, bool show_archive
InstanceConfig *instance = parray_get(instances, i); InstanceConfig *instance = parray_get(instances, i);
char backup_instance_path[MAXPGPATH]; char backup_instance_path[MAXPGPATH];
if (interrupted)
elog(ERROR, "Interrupted during show");
sprintf(backup_instance_path, "%s/%s/%s", backup_path, BACKUPS_DIR, instance->name); sprintf(backup_instance_path, "%s/%s/%s", backup_path, BACKUPS_DIR, instance->name);
if (show_archive) if (show_archive)