From 0ad0c09511a04ebe837f2acb859d47f2aa4e038a Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Fri, 24 Sep 2010 19:01:03 +0200 Subject: Imported Upstream version 1.6.3 --- scripting/engine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripting/engine.cpp') 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; } -- cgit v1.2.3