summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_builder.cpp')
-rw-r--r--src/mongo/db/index_builder.cpp2
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());