Skip to content
Snippets Groups Projects
Commit 67c338cc authored by Daniel Salzman's avatar Daniel Salzman
Browse files

ctl: set failed if backup in progress for some zones

parent 28d19529
No related branches found
No related tags found
1 merge request!1111implemented zone data backup
......@@ -434,6 +434,7 @@ static int zone_backup_cmd(zone_t *zone, ctl_args_t *args)
zone_backup_ctx_t *ctx = args->custom_ctx;
if (zone->backup_ctx != NULL) {
log_zone_warning(zone->name, "back-up already in progress");
args->failed = true;
return KNOT_EPROGRESS;
}
zone->backup_ctx = ctx;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment