diff options
author | Nicholas Zolnierz <nicholas.zolnierz@mongodb.com> | 2019-08-15 20:08:22 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-15 20:08:22 +0000 |
commit | c0ca6049bad1bf918e46d83cddab134b7441abf7 (patch) | |
tree | 23380aabf54cf84939ef062611d652ba7ad21905 /src/mongo/db/pipeline/process_interface_standalone.h | |
parent | 7c8f6dcb7f0bf2e397f470e8bca1cc0185216cb4 (diff) | |
download | mongo-c0ca6049bad1bf918e46d83cddab134b7441abf7.tar.gz |
SERVER-42684 Add support for 'scope' RunTimeConstant
Diffstat (limited to 'src/mongo/db/pipeline/process_interface_standalone.h')
-rw-r--r-- | src/mongo/db/pipeline/process_interface_standalone.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/process_interface_standalone.h b/src/mongo/db/pipeline/process_interface_standalone.h index e367df574dd..7e45dd0eaa0 100644 --- a/src/mongo/db/pipeline/process_interface_standalone.h +++ b/src/mongo/db/pipeline/process_interface_standalone.h @@ -158,9 +158,9 @@ public: * If we are creating a new JsExecution (and therefore a new thread-local scope), make sure * we pass that information back to the caller. */ - std::pair<JsExecution*, bool> getJsExec() override { + std::pair<JsExecution*, bool> getJsExec(const BSONObj& scope) override { if (!_jsExec) { - _jsExec = std::make_unique<JsExecution>(); + _jsExec = std::make_unique<JsExecution>(scope); return {_jsExec.get(), true}; } return {_jsExec.get(), false}; |