mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge 097c66f614 into merged_master (Bitcoin PR bitcoin/bitcoin#30039)
This commit is contained in:
commit
09c3592fd1
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue