aboutsummaryrefslogtreecommitdiffstats
path: root/log_db/src/common.rs
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2024-11-02 21:02:59 +0200
committerJan Tuomi <jan@jantuomi.fi>2024-11-02 21:02:59 +0200
commit93c9a0cd1a90eb670fb47c0d1b5bc5d2f23a42f9 (patch)
treeeb099f522cf88fcad75f000608dc1a3d753dbe24 /log_db/src/common.rs
parent912c32f762ee7585e20fde57c7c5dca1f9b0478d (diff)
Rewrite initialize, WIP log readers (now broken)
Diffstat (limited to 'log_db/src/common.rs')
-rw-r--r--log_db/src/common.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/log_db/src/common.rs b/log_db/src/common.rs
index 0a1179e..c08f212 100644
--- a/log_db/src/common.rs
+++ b/log_db/src/common.rs
@@ -14,6 +14,7 @@ use std::os::unix::fs::MetadataExt;
use std::os::windows::fs::MetadataExt;
pub const ACTIVE_SYMLINK_FILENAME: &str = "active";
+pub const METADATA_FILE_HEADER_SIZE: usize = 24;
pub const EXCL_LOCK_REQUEST_FILENAME: &str = "excl_lock_req";
pub const DEFAULT_READ_BUF_SIZE: usize = 1024 * 1024; // 1 MB
pub const FIELD_SEPARATOR: u8 = b'\x1C';