1
0
Fork 0

minor fixes (#7689)

This commit is contained in:
Jan 2018-12-07 16:22:25 +01:00 committed by GitHub
parent 5bae3742e5
commit 945922ad87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -72,7 +72,8 @@ void CacheManagerFeature::collectOptions(
options->addSection("cache", "Configure the hash cache");
options->addOption("--cache.size", "size of cache in bytes",
new UInt64Parameter(&_cacheSize));
new UInt64Parameter(&_cacheSize),
arangodb::options::makeFlags(arangodb::options::Flags::Dynamic));
options->addOption("--cache.rebalancing-interval",
"microseconds between rebalancing attempts",

View File

@ -630,12 +630,9 @@ arangodb::Result LogicalCollection::appendVelocyPack(
result.add("allowUserKeys", VPackValue(_allowUserKeys));
// keyoptions
result.add(VPackValue("keyOptions"));
result.add("keyOptions", VPackValue(VPackValueType::Object));
if (_keyGenerator != nullptr) {
result.openObject();
_keyGenerator->toVelocyPack(result);
} else {
result.openArray();
}
result.close();

View File

@ -99,7 +99,7 @@ RocksDBOptionFeature::RocksDBOptionFeature(
if (_totalWriteBufferSize == 0) {
// unlimited write buffer size... now set to some fraction of physical RAM
if (TRI_PhysicalMemory >= (static_cast<uint64_t>(4) << 30)) {
_totalWriteBufferSize = static_cast<uint64_t>((TRI_PhysicalMemory - (static_cast<uint64_t>(2) << 30)) * 0.5);
_totalWriteBufferSize = static_cast<uint64_t>((TRI_PhysicalMemory - (static_cast<uint64_t>(2) << 30)) * 0.4);
} else {
_totalWriteBufferSize = (512 << 20);
}