mirror of https://gitee.com/bigwinds/arangodb
minor fixes (#7689)
This commit is contained in:
parent
5bae3742e5
commit
945922ad87
|
@ -72,7 +72,8 @@ void CacheManagerFeature::collectOptions(
|
||||||
options->addSection("cache", "Configure the hash cache");
|
options->addSection("cache", "Configure the hash cache");
|
||||||
|
|
||||||
options->addOption("--cache.size", "size of cache in bytes",
|
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",
|
options->addOption("--cache.rebalancing-interval",
|
||||||
"microseconds between rebalancing attempts",
|
"microseconds between rebalancing attempts",
|
||||||
|
|
|
@ -630,12 +630,9 @@ arangodb::Result LogicalCollection::appendVelocyPack(
|
||||||
result.add("allowUserKeys", VPackValue(_allowUserKeys));
|
result.add("allowUserKeys", VPackValue(_allowUserKeys));
|
||||||
|
|
||||||
// keyoptions
|
// keyoptions
|
||||||
result.add(VPackValue("keyOptions"));
|
result.add("keyOptions", VPackValue(VPackValueType::Object));
|
||||||
if (_keyGenerator != nullptr) {
|
if (_keyGenerator != nullptr) {
|
||||||
result.openObject();
|
|
||||||
_keyGenerator->toVelocyPack(result);
|
_keyGenerator->toVelocyPack(result);
|
||||||
} else {
|
|
||||||
result.openArray();
|
|
||||||
}
|
}
|
||||||
result.close();
|
result.close();
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ RocksDBOptionFeature::RocksDBOptionFeature(
|
||||||
if (_totalWriteBufferSize == 0) {
|
if (_totalWriteBufferSize == 0) {
|
||||||
// unlimited write buffer size... now set to some fraction of physical RAM
|
// unlimited write buffer size... now set to some fraction of physical RAM
|
||||||
if (TRI_PhysicalMemory >= (static_cast<uint64_t>(4) << 30)) {
|
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 {
|
} else {
|
||||||
_totalWriteBufferSize = (512 << 20);
|
_totalWriteBufferSize = (512 << 20);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue