mirror of https://gitee.com/bigwinds/arangodb
eliminate unnecessary check
This commit is contained in:
parent
30b4b2b402
commit
f1e6af1ce1
|
@ -832,7 +832,7 @@ void V8DealerFeature::exitContext(V8Context* context) {
|
|||
bool performGarbageCollection = false;
|
||||
|
||||
// postpone garbage collection for standard contexts
|
||||
double lastGc = (gc != nullptr) ? gc->getLastGcStamp() : -1.0;
|
||||
double lastGc = gc->getLastGcStamp();
|
||||
if (context->_lastGcStamp + _gcFrequency < lastGc) {
|
||||
LOG_TOPIC(TRACE, arangodb::Logger::V8) << "V8 context has reached GC timeout threshold and will be "
|
||||
"scheduled for GC";
|
||||
|
|
Loading…
Reference in New Issue