summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_session_external_state_d.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2013-08-22 15:11:53 -0400
committerMathias Stearn <mathias@10gen.com>2013-08-26 17:22:39 -0400
commit73841f7a1ec1322d96179eb2712ab438f56add00 (patch)
tree8f3eec6b3a9daf3c3ed7f69360b8db90f6bc79fc /src/mongo/db/auth/authz_session_external_state_d.cpp
parentd0502e5bd74203d50ce5b4c8341de3ed01c6c508 (diff)
downloadmongo-73841f7a1ec1322d96179eb2712ab438f56add00.tar.gz
SERVER-10596 Globalize formerly per-thread Pool of JS Scopes
This ensures that the limit of 10 pooled scopes is actually enforced. With a per-thread Pool, long-lived connections could cause very high memory usage (both real and virtual) even if they haven't used JS in a long time.
Diffstat (limited to 'src/mongo/db/auth/authz_session_external_state_d.cpp')
-rw-r--r--src/mongo/db/auth/authz_session_external_state_d.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/db/auth/authz_session_external_state_d.cpp b/src/mongo/db/auth/authz_session_external_state_d.cpp
index 1736e827bc2..021a47376cc 100644
--- a/src/mongo/db/auth/authz_session_external_state_d.cpp
+++ b/src/mongo/db/auth/authz_session_external_state_d.cpp
@@ -43,16 +43,4 @@ namespace mongo {
return cc().isGod() || AuthzSessionExternalStateServerCommon::shouldIgnoreAuthChecks();
}
- void AuthzSessionExternalStateMongod::onAddAuthorizedUser() {
- // invalidate all thread-local JS scopes due to new user authentication
- if (globalScriptEngine)
- globalScriptEngine->threadDone();
- }
-
- void AuthzSessionExternalStateMongod::onLogoutDatabase(const std::string&) {
- // invalidate all thread-local JS scopes due to logout
- if (globalScriptEngine)
- globalScriptEngine->threadDone();
- }
-
} // namespace mongo