summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/task_runner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/task_runner.cpp')
-rw-r--r--src/mongo/db/repl/task_runner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/task_runner.cpp b/src/mongo/db/repl/task_runner.cpp
index 134160bbdf1..668f6cd7fc3 100644
--- a/src/mongo/db/repl/task_runner.cpp
+++ b/src/mongo/db/repl/task_runner.cpp
@@ -136,7 +136,7 @@ void TaskRunner::_runTasks() {
Client::initThreadIfNotAlready();
Client* client = &cc();
if (AuthorizationManager::get(client->getServiceContext())->isAuthEnabled()) {
- AuthorizationSession::get(client)->grantInternalAuthorization();
+ AuthorizationSession::get(client)->grantInternalAuthorization(client);
}
ServiceContext::UniqueOperationContext txn;