mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-05 00:04:23 +01:00
Set reserved_space to 28 for encrypted databases
We will use this space to store nonce and tag
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user