diff options
| author | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2019-02-28 13:41:40 -0500 |
|---|---|---|
| committer | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2019-03-04 15:44:09 -0500 |
| commit | 447847d93d6e0a21b018d5df45528e815c7c13d8 (patch) | |
| tree | 02b7857e766fa85730a61b4b189d4cc7d48d8bfd /src/mongo/db/repl/sync_tail.cpp | |
| parent | bede0e9b7afee4bb30025b1ffc3e22763aec9e93 (diff) | |
SERVER-39058 Synchronize user set modification in AuthorizationSession with Clientr3.4.20-rc0r3.4.20
(cherry picked from commit a9277e874039f32ce0d848fcdfb10de705c96fd9)
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()); } } |
