[pbs-devel] applied: [PATCH proxmox-backup 1/3] backup: ensure no fixed index writers are left over either
Dietmar Maurer
dietmar at proxmox.com
Thu Sep 10 06:29:16 CEST 2020
applied
> On 09/08/2020 3:29 PM Stefan Reiter <s.reiter at proxmox.com> wrote:
>
>
> Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
> ---
> src/api2/backup/environment.rs | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/api2/backup/environment.rs b/src/api2/backup/environment.rs
> index 973563d3..f635c6f7 100644
> --- a/src/api2/backup/environment.rs
> +++ b/src/api2/backup/environment.rs
> @@ -457,11 +457,11 @@ impl BackupEnvironment {
> /// Mark backup as finished
> pub fn finish_backup(&self) -> Result<(), Error> {
> let mut state = self.state.lock().unwrap();
> - // test if all writer are correctly closed
>
> state.ensure_unfinished()?;
>
> - if state.dynamic_writers.len() != 0 {
> + // test if all writer are correctly closed
> + if state.dynamic_writers.len() != 0 || state.fixed_writers.len() != 0 {
> bail!("found open index writer - unable to finish backup");
> }
>
> --
> 2.20.1
>
>
>
> _______________________________________________
> pbs-devel mailing list
> pbs-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
More information about the pbs-devel
mailing list