From eb15d9a887848b8e588aa4e4a851e4fa64510b77 Mon Sep 17 00:00:00 2001 From: mulhern Date: Tue, 9 Jul 2024 16:41:17 -0400 Subject: [PATCH] Multiply meta_growth by 2 We should not allocate the extra space for the thin pool metadata unless we can allocate that space for the backup as well. Signed-off-by: mulhern --- src/engine/strat_engine/thinpool/thinpool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/strat_engine/thinpool/thinpool.rs b/src/engine/strat_engine/thinpool/thinpool.rs index 0ae05172e3..93bf3312af 100644 --- a/src/engine/strat_engine/thinpool/thinpool.rs +++ b/src/engine/strat_engine/thinpool/thinpool.rs @@ -1098,7 +1098,7 @@ impl ThinPool { } } - if meta_growth > backstore.available_in_backstore() { + if 2u64 * meta_growth > backstore.available_in_backstore() { self.out_of_meta_space = true; ( self.set_error_mode(),