]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
ctl: set failed if backup in progress for some zones
authorDaniel Salzman <daniel.salzman@nic.cz>
Mon, 24 Aug 2020 09:17:23 +0000 (11:17 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Tue, 25 Aug 2020 19:52:30 +0000 (21:52 +0200)
src/knot/ctl/commands.c

index 23752777109244c16f28b733ed32b80b0e9c1d67..9c3237fcf27dedae1ec77eb00f5f3b4e7dd6ba9f 100644 (file)
@@ -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;