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 and rkrasiuk committed Oct 17, 2023
1 parent b399e5d commit 988bd3c
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 988bd3c

Please sign in to comment.