mirror of https://gitee.com/bigwinds/arangodb
More windows warnings
This commit is contained in:
parent
35600c2ca2
commit
af4da5796f
|
@ -57,7 +57,7 @@ CacheManagerFeature::CacheManagerFeature(
|
|||
_manager(nullptr),
|
||||
_rebalancer(nullptr),
|
||||
_cacheSize((TRI_PhysicalMemory >= (static_cast<uint64_t>(4) << 30))
|
||||
? ((TRI_PhysicalMemory - (static_cast<uint64_t>(2) << 30)) * 0.3)
|
||||
? static_cast<uint64_t>((TRI_PhysicalMemory - (static_cast<uint64_t>(2) << 30)) * 0.3)
|
||||
: (256 << 20)),
|
||||
_rebalancingInterval(static_cast<uint64_t>(2 * 1000 * 1000)) {
|
||||
setOptional(true);
|
||||
|
|
|
@ -61,7 +61,7 @@ RocksDBOptionFeature::RocksDBOptionFeature(
|
|||
_numThreadsHigh(rocksDBDefaults.max_background_flushes),
|
||||
_numThreadsLow(rocksDBDefaults.max_background_compactions),
|
||||
_blockCacheSize((TRI_PhysicalMemory >= (static_cast<uint64_t>(4) << 30))
|
||||
? ((TRI_PhysicalMemory - (static_cast<uint64_t>(2) << 30)) * 0.3)
|
||||
? static_cast<uint64_t>(((TRI_PhysicalMemory - (static_cast<uint64_t>(2) << 30)) * 0.3))
|
||||
: (256 << 20)),
|
||||
_blockCacheShardBits(0),
|
||||
_recycleLogFileNum(rocksDBDefaults.recycle_log_file_num),
|
||||
|
|
Loading…
Reference in New Issue