summaryrefslogtreecommitdiff
path: root/scripting/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/engine.cpp')
-rw-r--r--scripting/engine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripting/engine.cpp b/scripting/engine.cpp
index 9e20a3a..da108c6 100644
--- a/scripting/engine.cpp
+++ b/scripting/engine.cpp
@@ -305,7 +305,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;
}