summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbeval.cpp
diff options
context:
space:
mode:
authorBen Becker <ben.becker@10gen.com>2013-01-18 14:15:28 -0800
committerBen Becker <ben.becker@10gen.com>2013-01-18 14:15:43 -0800
commit41c1110326ae00fc7fb279b3bfeabadc3a82bc5a (patch)
tree646e122504532957a3517ea1b3e82070c629d091 /src/mongo/db/dbeval.cpp
parent98d2e5d364e01581a4ba1b2e7df25f79ebd836b2 (diff)
downloadmongo-41c1110326ae00fc7fb279b3bfeabadc3a82bc5a.tar.gz
SERVER-8104: clean up js global object
Diffstat (limited to 'src/mongo/db/dbeval.cpp')
-rw-r--r--src/mongo/db/dbeval.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbeval.cpp b/src/mongo/db/dbeval.cpp
index 4848279ebe3..056cafb9bdc 100644
--- a/src/mongo/db/dbeval.cpp
+++ b/src/mongo/db/dbeval.cpp
@@ -57,7 +57,7 @@ namespace mongo {
return false;
}
- auto_ptr<Scope> s = globalScriptEngine->getPooledScope( dbName );
+ auto_ptr<Scope> s = globalScriptEngine->getPooledScope( dbName + "dbeval" );
ScriptingFunction f = s->createFunction(code);
if ( f == 0 ) {
errmsg = (string)"compile failed: " + s->getError();