summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/pipeline.cpp
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2019-08-06 11:55:16 -0400
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2019-08-07 13:44:43 -0400
commit370187d7d9169eeac4065b9b60b8f74c331eae67 (patch)
treef635fe4e03d54207b07ebdc722ff20d4d08987b0 /src/mongo/db/pipeline/pipeline.cpp
parentd7455e67f5b002de110f7972603906888aff66b8 (diff)
downloadmongo-370187d7d9169eeac4065b9b60b8f74c331eae67.tar.gz
SERVER-42507 Add internal javascript emit aggregation expression
Diffstat (limited to 'src/mongo/db/pipeline/pipeline.cpp')
-rw-r--r--src/mongo/db/pipeline/pipeline.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/pipeline.cpp b/src/mongo/db/pipeline/pipeline.cpp
index 3337a79e4b8..355bc8a429a 100644
--- a/src/mongo/db/pipeline/pipeline.cpp
+++ b/src/mongo/db/pipeline/pipeline.cpp
@@ -320,6 +320,7 @@ bool Pipeline::aggHasWriteStage(const BSONObj& cmd) {
void Pipeline::detachFromOperationContext() {
pCtx->opCtx = nullptr;
pCtx->mongoProcessInterface->setOperationContext(nullptr);
+ pCtx->mongoProcessInterface->releaseJsExec();
for (auto&& source : _sources) {
source->detachFromOperationContext();