aboutsummaryrefslogtreecommitdiffstats
path: root/log_db/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'log_db/src/lib.rs')
-rw-r--r--log_db/src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/log_db/src/lib.rs b/log_db/src/lib.rs
index 9c25dd8..49caabc 100644
--- a/log_db/src/lib.rs
+++ b/log_db/src/lib.rs
@@ -46,15 +46,16 @@ impl<'a, Field: Eq + Clone + Debug> ConfigBuilder<Field> {
}
}
- /// Directory where the database will store its data.
+ /// The directory where the database will store its data.
pub fn data_dir(&mut self, data_dir: &str) -> &mut Self {
self.data_dir = Some(data_dir.to_string());
self
}
/// The maximum size of a segment file in bytes.
- /// Once a segment file reaches this size, it is closed and a new one is created.
- /// Closed segment files can be compacted.
+ /// Once a segment file reaches this size, it can be closed, rotated and compacted.
+ /// Note that this is not a hard limit: if `db.do_maintenance_tasks()` is not called,
+ /// the segment file may continue to grow.
pub fn segment_size(&mut self, segment_size: usize) -> &mut Self {
self.segment_size = Some(segment_size);
self