diff options
Diffstat (limited to 'src/mongo/db/repl/sync_tail.cpp')
| -rw-r--r-- | src/mongo/db/repl/sync_tail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/sync_tail.cpp b/src/mongo/db/repl/sync_tail.cpp index dfd1d564f90..ac75166052d 100644 --- a/src/mongo/db/repl/sync_tail.cpp +++ b/src/mongo/db/repl/sync_tail.cpp @@ -148,7 +148,7 @@ ServerStatusMetricField<TimerStats> displayOpBatchesApplied("repl.apply.batches" void initializePrefetchThread() { if (!Client::getCurrent()) { Client::initThreadIfNotAlready(); - AuthorizationSession::get(cc())->grantInternalAuthorization(); + AuthorizationSession::get(cc())->grantInternalAuthorization(&cc()); } } @@ -461,7 +461,7 @@ void initializeWriterThread() { // Only do this once per thread if (!Client::getCurrent()) { Client::initThreadIfNotAlready(); - AuthorizationSession::get(cc())->grantInternalAuthorization(); + AuthorizationSession::get(cc())->grantInternalAuthorization(&cc()); } } |
