Skip to content

Commit

Permalink
chore: increase max dbs (#4381)
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg authored Sep 24, 2023
1 parent 6016da7 commit 7f80219
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/storage/db/src/implementation/mdbx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ impl<E: EnvironmentKind> Env<E> {
};

let mut inner_env = Environment::new();
inner_env.set_max_dbs(Tables::ALL.len());

// Note: We set max dbs to 256 here to allow for custom tables. This needs to be set on
// environment creation.
debug_assert!(Tables::ALL.len() <= 256, "number of tables exceed max dbs");
inner_env.set_max_dbs(256);
inner_env.set_geometry(Geometry {
// Maximum database size of 4 terabytes
size: Some(0..(4 * TERABYTE)),
Expand Down

0 comments on commit 7f80219

Please sign in to comment.