We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3165ed + cd01a5e commit 0f2f2b3Copy full SHA for 0f2f2b3
src/leveldbwrapper.cpp
@@ -32,6 +32,11 @@ static leveldb::Options GetOptions(size_t nCacheSize) {
32
options.filter_policy = leveldb::NewBloomFilterPolicy(10);
33
options.compression = leveldb::kNoCompression;
34
options.max_open_files = 64;
35
+ if (leveldb::kMajorVersion > 1 || (leveldb::kMajorVersion == 1 && leveldb::kMinorVersion >= 16)) {
36
+ // LevelDB versions before 1.16 consider short writes to be corruption. Only trigger error
37
+ // on corruption in later versions.
38
+ options.paranoid_checks = true;
39
+ }
40
return options;
41
}
42
0 commit comments