diff options
author | Jason Carey <jcarey@argv.me> | 2017-08-29 14:26:07 -0400 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2017-08-30 15:05:04 -0400 |
commit | 8ef456f89f63ab12941fe6b5352b20cff2522da3 (patch) | |
tree | 6c1e5d5bb2f71175297b69013dd00b199b9f053d /src/mongo/scripting/engine.h | |
parent | b39e21c774d0ff3afeac1730f08d8defed38044d (diff) | |
download | mongo-r3.4.8-rc1.tar.gz |
SERVER-30875 add requireOwnedObjects() to scoper3.4.8-rc1r3.4.8
Add a flag to JS scopes that requires that bson objects bound to the
scope be owned. This should allow for more easy auditing of scopes that
don't explicitly manage lifetime with advanceGeneration.
(cherry picked from commit 79b47945a6aae707d44e05669d991d86b157a14b)
Diffstat (limited to 'src/mongo/scripting/engine.h')
-rw-r--r-- | src/mongo/scripting/engine.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/scripting/engine.h b/src/mongo/scripting/engine.h index 2b2ab0ff14d..3fcfeff1f8b 100644 --- a/src/mongo/scripting/engine.h +++ b/src/mongo/scripting/engine.h @@ -103,6 +103,8 @@ public: virtual void advanceGeneration() = 0; + virtual void requireOwnedObjects() = 0; + virtual ScriptingFunction createFunction(const char* code); /** |