Skip to content

Commit

Permalink
database: fix up length check of allocation strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Wünsche committed Apr 16, 2024
1 parent 0e8a726 commit d0618da
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 d0618da

Please sign in to comment.