mirror of https://github.com/digint/btrbk
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
parent
b50bee3b20
commit
cc1e1b42d8
2
btrbk
2
btrbk
|
@ -4530,8 +4530,8 @@ sub macro_send_receive(@)
|
||||||
TARGET_TYPE => $target_type,
|
TARGET_TYPE => $target_type,
|
||||||
FORCE_PRESERVE => 'preserve forced: created just now',
|
FORCE_PRESERVE => 'preserve forced: created just now',
|
||||||
}, $raw_info);
|
}, $raw_info);
|
||||||
$source->{SUBVOL_SENT}{$target->{URL}} = $vol_received;
|
|
||||||
}
|
}
|
||||||
|
$source->{SUBVOL_SENT}{$target->{URL}} = $vol_received;
|
||||||
|
|
||||||
# add info to $config->{SUBVOL_RECEIVED}
|
# add info to $config->{SUBVOL_RECEIVED}
|
||||||
$info{received_type} = $target_type || die;
|
$info{received_type} = $target_type || die;
|
||||||
|
|
Loading…
Reference in New Issue