1
0
Fork 0

fixed issue #1781: ArangoDB startup time increased tremendously

This commit is contained in:
Jan Steemann 2016-03-21 10:50:08 +01:00
parent 9b64986b4b
commit acd0712d61
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
v2.8.6 (2016-03-XX)
-------------------
* fixed issue #1781: ArangoDB startup time increased tremendously
* fixed issue #1783: SIGHUP should rotate the log

View File

@ -292,7 +292,7 @@ namespace triagens {
////////////////////////////////////////////////////////////////////////////////
bool checkResize (Bucket& b, uint64_t expected) {
if (2 * (b._nrAlloc + expected) < 3 * b._nrUsed) {
if (2 * b._nrAlloc < 3 * (b._nrUsed + expected)) {
try {
resizeInternal(b, 2 * (b._nrAlloc + expected) + 1, false);
}