Set reserved_space to 28 for encrypted databases

We will use this space to store nonce and tag
This commit is contained in:
Avinash Sajjanshetty
2025-08-12 21:54:03 +05:30
parent a6e9237c94
commit 94d38be1a2

View File

@@ -309,6 +309,9 @@ impl Default for DatabaseHeader {
page_size: Default::default(),
write_version: Version::Wal,
read_version: Version::Wal,
#[cfg(feature = "encryption")]
reserved_space: 28,
#[cfg(not(feature = "encryption"))]
reserved_space: 0,
max_embed_frac: 64,
min_embed_frac: 32,