summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth')
-rw-r--r--src/mongo/db/auth/user_cache_invalidator_job.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/db/auth/user_cache_invalidator_job.cpp b/src/mongo/db/auth/user_cache_invalidator_job.cpp
index 64201da2be3..5eeada66ea5 100644
--- a/src/mongo/db/auth/user_cache_invalidator_job.cpp
+++ b/src/mongo/db/auth/user_cache_invalidator_job.cpp
@@ -53,10 +53,6 @@ namespace {
} // namespace
void UserCacheInvalidator::run() {
- if (!_authzManager->isAuthEnabled()) {
- return; // Nothing to do
- }
-
Client::initThread("UserCacheInvalidatorThread");
while (true) {
sleepsecs(userCacheInvalidationIntervalSecs);