mirror of https://gitee.com/bigwinds/arangodb
fixed issue #1781: ArangoDB startup time increased tremendously
This commit is contained in:
parent
9b64986b4b
commit
acd0712d61
|
@ -1,6 +1,8 @@
|
||||||
v2.8.6 (2016-03-XX)
|
v2.8.6 (2016-03-XX)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
* fixed issue #1781: ArangoDB startup time increased tremendously
|
||||||
|
|
||||||
* fixed issue #1783: SIGHUP should rotate the log
|
* fixed issue #1783: SIGHUP should rotate the log
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -292,7 +292,7 @@ namespace triagens {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
bool checkResize (Bucket& b, uint64_t expected) {
|
bool checkResize (Bucket& b, uint64_t expected) {
|
||||||
if (2 * (b._nrAlloc + expected) < 3 * b._nrUsed) {
|
if (2 * b._nrAlloc < 3 * (b._nrUsed + expected)) {
|
||||||
try {
|
try {
|
||||||
resizeInternal(b, 2 * (b._nrAlloc + expected) + 1, false);
|
resizeInternal(b, 2 * (b._nrAlloc + expected) + 1, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue