mirror of
https://github.com/mikedilger/chorus.git
synced 2026-06-02 07:02:09 +00:00
Warn if events are not aligned
This commit is contained in:
parent
82016f4954
commit
363a2835f0
@ -151,6 +151,11 @@ impl Lmdb {
|
||||
|
||||
pub fn log_stats(&self) -> Result<(), Error> {
|
||||
let txn = self.read_txn()?;
|
||||
|
||||
if !self.get_if_events_are_aligned()? {
|
||||
log::warn!("Events are not aligned on 8-byte offsets. You should run `chorus_compress` to rebuild your data (but it will keep working regardless)");
|
||||
}
|
||||
|
||||
if let Ok(count) = self.i_index.len(&txn) {
|
||||
log::info!("Index: id ({} entries, {} bytes)", count, count * (32 + 8));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user