Skip to content

Commit

Permalink
database: fix up length check of allocation strategy (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwuensche authored Apr 16, 2024
1 parent 0e8a726 commit 7deb72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion betree/src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);

Expand Down

0 comments on commit 7deb72b

Please sign in to comment.