From d0618da05cf7e6eba16ddfd3cb003fb0a6432604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20W=C3=BCnsche?= Date: Tue, 16 Apr 2024 15:44:44 +0200 Subject: [PATCH] database: fix up length check of allocation strategy --- 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" );