diff options
Diffstat (limited to 'src/mongo/db/index_builder.cpp')
-rw-r--r-- | src/mongo/db/index_builder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index_builder.cpp b/src/mongo/db/index_builder.cpp index 59e83d268f1..1627cc20c9d 100644 --- a/src/mongo/db/index_builder.cpp +++ b/src/mongo/db/index_builder.cpp @@ -86,7 +86,7 @@ void IndexBuilder::run() { OperationContext& txn = *txnPtr; txn.lockState()->setShouldConflictWithSecondaryBatchApplication(false); - AuthorizationSession::get(txn.getClient())->grantInternalAuthorization(); + AuthorizationSession::get(txn.getClient())->grantInternalAuthorization(txnPtr.get()); { stdx::lock_guard<Client> lk(*txn.getClient()); |