1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use super::*;
pub const MSG_HEADER_LEN: usize = 25;
pub const SEG_HEADER_LEN: usize = 20;
pub const BLOB_INLINE_LEN: usize = std::mem::size_of::<Lsn>();
pub const BATCH_MANIFEST_INLINE_LEN: usize = std::mem::size_of::<Lsn>();
pub const MINIMUM_ITEMS_PER_SEGMENT: usize = 4;
#[allow(unused)]
pub const MAX_SPACE_AMPLIFICATION: f64 = 30.;
pub(crate) const META_PID: PageId = 0;
pub(crate) const COUNTER_PID: PageId = 1;
pub(crate) const BATCH_MANIFEST_PID: PageId = PageId::max_value() - 666;
pub(crate) const PAGE_CONSOLIDATION_THRESHOLD: usize = 10;