diff options
author | Libor Peltan <libor.peltan@nic.cz> | 2021-02-11 09:41:27 +0100 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2021-02-11 09:46:31 +0100 |
commit | e2820239f598599b016a1070197131b4e41744b8 (patch) | |
tree | 4ed4d41f1f017deffd6d0ef7f56ca2d22deb9b90 /src | |
parent | backup: allow concurrent backup procedure... (diff) | |
download | knot-e2820239f598599b016a1070197131b4e41744b8.tar.xz knot-e2820239f598599b016a1070197131b4e41744b8.zip |
backup: better warning wording
Diffstat (limited to 'src')
-rw-r--r-- | src/knot/ctl/commands.c | 2 | ||||
-rw-r--r-- | src/knot/zone/backup.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/knot/ctl/commands.c b/src/knot/ctl/commands.c index 54c309f65..f7eba65a9 100644 --- a/src/knot/ctl/commands.c +++ b/src/knot/ctl/commands.c @@ -451,7 +451,7 @@ static int zone_backup_cmd(zone_t *zone, ctl_args_t *args) { zone_backup_ctx_t *ctx = latest_backup_ctx(args); if (zone->backup_ctx != NULL) { - log_zone_warning(zone->name, "zone backup already in progress, skipping zone"); + log_zone_warning(zone->name, "backup already in progress, skipping zone"); return KNOT_EOK; } zone->backup_ctx = ctx; diff --git a/src/knot/zone/backup.c b/src/knot/zone/backup.c index 348de17dc..4615ffedf 100644 --- a/src/knot/zone/backup.c +++ b/src/knot/zone/backup.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> +/* Copyright (C) 2021 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -139,7 +139,8 @@ void zone_backups_deinit(zone_backup_ctxs_t *ctxs) { zone_backup_ctx_t *ctx, *nxt; WALK_LIST_DELSAFE(ctx, nxt, ctxs->ctxs) { - log_warning("backup in progress, terminating, will be incomplete"); + log_warning("backup to '%s' in progress, terminating, will be incomplete", + ctx->backup_dir); ctx->readers = 1; // ensure full deinit zone_backup_deinit(ctx); } |