Merge 097c66f614 into merged_master (Bitcoin PR bitcoin/bitcoin#30039)

This commit is contained in:
ivanlele 2026-04-06 13:46:58 +00:00
commit 09c3592fd1
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View file

@ -147,6 +147,7 @@ static leveldb::Options GetOptions(size_t nCacheSize)
// on corruption in later versions.
options.paranoid_checks = true;
}
options.max_file_size = std::max(options.max_file_size, DBWRAPPER_MAX_FILE_SIZE);
SetMaxOpenFiles(&options);
return options;
}

View file

@ -22,6 +22,7 @@
static const size_t DBWRAPPER_PREALLOC_KEY_SIZE = 64;
static const size_t DBWRAPPER_PREALLOC_VALUE_SIZE = 1024;
static const size_t DBWRAPPER_MAX_FILE_SIZE = 32 << 20; // 32 MiB
//! User-controlled performance and debug options.
struct DBOptions {