summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2016-09-10 11:22:17 -0400
committerJonathan Reams <jbreams@mongodb.com>2016-10-03 10:29:31 -0400
commitfd300c0c05c1e057a7c5f24e7599d26e383234d0 (patch)
treef8ecf02e6b0d8d9d39a33fe50e157bf847b27c9a /src/mongo/db/exec
parentab912a90501ffa988591ab5173773b538cc22cac (diff)
downloadmongo-fd300c0c05c1e057a7c5f24e7599d26e383234d0.tar.gz
SERVER-19042 Make globalScriptEngine a decoration on ServiceContext where possible
Diffstat (limited to 'src/mongo/db/exec')
-rw-r--r--src/mongo/db/exec/group.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/group.cpp b/src/mongo/db/exec/group.cpp
index c4be03cdaad..5ec8226c431 100644
--- a/src/mongo/db/exec/group.cpp
+++ b/src/mongo/db/exec/group.cpp
@@ -97,8 +97,8 @@ Status GroupStage::initGroupScripting() {
AuthorizationSession::get(Client::getCurrent())->getAuthenticatedUserNamesToken();
const NamespaceString nss(_request.ns);
- _scope =
- globalScriptEngine->getPooledScope(getOpCtx(), nss.db().toString(), "group" + userToken);
+ _scope = getGlobalScriptEngine()->getPooledScope(
+ getOpCtx(), nss.db().toString(), "group" + userToken);
if (!_request.reduceScope.isEmpty()) {
_scope->init(&_request.reduceScope);
}