From 7deb72b91095b3bdb893f11d6730625866e2bb81 Mon Sep 17 00:00:00 2001 From: jwuensche Date: Tue, 16 Apr 2024 16:46:25 +0200 Subject: [PATCH] database: fix up length check of allocation strategy (#60) --- betree/src/database/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" );