diff --git a/betree/src/database/mod.rs b/betree/src/database/mod.rs index 399d4c8c..7b4f1556 100644 --- a/betree/src/database/mod.rs +++ b/betree/src/database/mod.rs @@ -220,7 +220,7 @@ impl DatabaseConfiguration { for (dst, src) in strategy.iter_mut().zip(self.alloc_strategy.iter()) { assert!( - src.len() < NUM_STORAGE_CLASSES, + src.len() <= NUM_STORAGE_CLASSES, "Invalid allocation strategy, can't try more than once per class" );