summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/engine.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-10-07 13:50:46 -0400
committerAndrew Morrow <acm@mongodb.com>2015-10-12 12:25:23 -0400
commit644e0a886850763603de5c40498c26f78c1f4751 (patch)
tree10183e54ab450ee4175200cbf1cda65229d9fa25 /src/mongo/scripting/engine.h
parent86df469d26ef8482ffcf5753929b8a5102086b90 (diff)
downloadmongo-644e0a886850763603de5c40498c26f78c1f4751.tar.gz
SERVER-20678 Create a new JS scope for each mapreduce
Diffstat (limited to 'src/mongo/scripting/engine.h')
-rw-r--r--src/mongo/scripting/engine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/scripting/engine.h b/src/mongo/scripting/engine.h
index 07dc3d24ce7..15c80c0da4e 100644
--- a/src/mongo/scripting/engine.h
+++ b/src/mongo/scripting/engine.h
@@ -237,6 +237,10 @@ public:
return createScope();
}
+ virtual Scope* newScopeForCurrentThread() {
+ return createScopeForCurrentThread();
+ }
+
virtual void runTest() = 0;
virtual bool utf8Ok() const = 0;
@@ -274,6 +278,7 @@ public:
protected:
virtual Scope* createScope() = 0;
+ virtual Scope* createScopeForCurrentThread() = 0;
void (*_scopeInitCallback)(Scope&);
private: