1
0
Fork 0

More windows warnings

This commit is contained in:
Andreas Streichardt 2017-05-16 17:00:31 +02:00
parent 35600c2ca2
commit af4da5796f
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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),