Fix whopper to work with encryption flag

This commit is contained in:
Avinash Sajjanshetty
2025-10-02 15:26:35 +05:30
parent fa6ee6b850
commit 68425fbe92
3 changed files with 2 additions and 3 deletions

View File

@@ -15,7 +15,6 @@ for arg in "$@"; do
FEATURES="--features checksum"
CHECKSUM_ENABLED=true
elif [[ "$arg" == "--enable-encryption" ]]; then
FEATURES="--features encryption"
ENCRYPTION_ENABLED=true
ARGS+=("$arg")
else

View File

@@ -15,7 +15,6 @@ for arg in "$@"; do
FEATURES="--features checksum"
CHECKSUM_ENABLED=true
elif [[ "$arg" == "--enable-encryption" ]]; then
FEATURES="--features encryption"
ENCRYPTION_ENABLED=true
ARGS+=("$arg")
else

View File

@@ -141,7 +141,8 @@ fn main() -> anyhow::Result<()> {
let db = {
let opts = DatabaseOpts::new()
.with_mvcc(args.enable_mvcc)
.with_indexes(true);
.with_indexes(true)
.with_encryption(encryption_opts.is_some());
match Database::open_file_with_flags(
io.clone(),