From cc1e1b42d8e3aba944ac3fc2bbf3cdfa9bd60bf7 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Fri, 2 Dec 2022 19:37:38 +0100 Subject: [PATCH] btrbk: fix inconsistent schedule output on errors Treat SUBVOL_SENT same as SUBVOL_RECEIVED, i.e. add it even if command fails. This fixes ambiguous output of scheduling results. --- btrbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrbk b/btrbk index daf895d..2ba904e 100755 --- a/btrbk +++ b/btrbk @@ -4530,8 +4530,8 @@ sub macro_send_receive(@) TARGET_TYPE => $target_type, FORCE_PRESERVE => 'preserve forced: created just now', }, $raw_info); - $source->{SUBVOL_SENT}{$target->{URL}} = $vol_received; } + $source->{SUBVOL_SENT}{$target->{URL}} = $vol_received; # add info to $config->{SUBVOL_RECEIVED} $info{received_type} = $target_type || die;