mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a compilation bug.
This commit is contained in:
@@ -180,7 +180,8 @@ void Application::setup()
|
|||||||
options.filter_policy = leveldb::NewBloomFilterPolicy(10);
|
options.filter_policy = leveldb::NewBloomFilterPolicy(10);
|
||||||
if (theConfig.LDB_IMPORT)
|
if (theConfig.LDB_IMPORT)
|
||||||
options.write_buffer_size = 32 << 20;
|
options.write_buffer_size = 32 << 20;
|
||||||
options.write_buffer_size = std::max(options.write_buffer_size, theConfig.getSize(siLDBWriteSize) << 20);
|
options.write_buffer_size = std::max(options.write_buffer_size,
|
||||||
|
static_cast<size_t>(theConfig.getSize(siLDBWriteSize) << 20));
|
||||||
leveldb::Status status = leveldb::DB::Open(options, (theConfig.DATA_DIR / "hashnode").string(), &mHashNodeLDB);
|
leveldb::Status status = leveldb::DB::Open(options, (theConfig.DATA_DIR / "hashnode").string(), &mHashNodeLDB);
|
||||||
if (!status.ok() || !mHashNodeLDB)
|
if (!status.ok() || !mHashNodeLDB)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user