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.
action-cp
Axel Burri 2022-12-02 19:37:38 +01:00
parent b50bee3b20
commit cc1e1b42d8
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -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;