|
|
@ -439,8 +439,8 @@ impl EnvironmentBuilder { |
|
|
|
/// Currently a moderate number of slots are cheap but a huge number gets
|
|
|
|
/// Currently a moderate number of slots are cheap but a huge number gets
|
|
|
|
/// expensive: 7-120 words per transaction, and every `Transaction::open_db`
|
|
|
|
/// expensive: 7-120 words per transaction, and every `Transaction::open_db`
|
|
|
|
/// does a linear search of the opened slots.
|
|
|
|
/// does a linear search of the opened slots.
|
|
|
|
pub fn set_max_dbs(&mut self, max_readers: c_uint) -> &mut EnvironmentBuilder { |
|
|
|
pub fn set_max_dbs(&mut self, max_dbs: c_uint) -> &mut EnvironmentBuilder { |
|
|
|
self.max_dbs = Some(max_readers); |
|
|
|
self.max_dbs = Some(max_dbs); |
|
|
|
self |
|
|
|
self |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|