mirror of https://gitee.com/bigwinds/arangodb
Fix a small logic issue in cache resize metadata method. (#4631)
This commit is contained in:
parent
85abfaaa55
commit
abe3f9134e
|
@ -134,7 +134,7 @@ bool Metadata::adjustLimits(uint64_t softLimit, uint64_t hardLimit) noexcept {
|
||||||
|
|
||||||
// special case: finalize shrinking case above
|
// special case: finalize shrinking case above
|
||||||
if ((softLimit == Cache::minSize) && (hardLimit == Cache::minSize) &&
|
if ((softLimit == Cache::minSize) && (hardLimit == Cache::minSize) &&
|
||||||
(usage < hardLimit)) {
|
(usage <= hardLimit)) {
|
||||||
return approve();
|
return approve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue