Skip to content

Commit

Permalink
Multiply meta_growth by 2
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mulkieran committed Jul 9, 2024
1 parent 4dda0c3 commit eb15d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/strat_engine/thinpool/thinpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit eb15d9a

Please sign in to comment.