diff --git a/scripting/engine.cpp b/scripting/engine.cpp index 904e4ced1c6..a776428a59d 100644 --- a/scripting/engine.cpp +++ b/scripting/engine.cpp @@ -319,7 +319,9 @@ namespace mongo { _real = 0; } else { - log() << "warning: scopeCache is empty!" << endl; + // this means that the Scope was killed from a different thread + // for example a cursor got timed out that has a $where clause + log(3) << "warning: scopeCache is empty!" << endl; delete _real; _real = 0; }