diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-04-07 15:15:59 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-16 16:00:28 -0400 |
commit | eb8025a6ff2c3652a1f89ae513f7a4a98cd4e2ab (patch) | |
tree | 07d6d6fd9ad11758f0122a9f4d721f4ec6901e0a /src/mongo/db/index_builder.cpp | |
parent | a377aa8648de036659bbb4e67c8dfa030299718b (diff) | |
download | mongo-eb8025a6ff2c3652a1f89ae513f7a4a98cd4e2ab.tar.gz |
SERVER-17817 Make AuthorizationSession a decoration of ClientBasic.
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 62eef061ff6..35ebcee4bb4 100644 --- a/src/mongo/db/index_builder.cpp +++ b/src/mongo/db/index_builder.cpp @@ -85,7 +85,7 @@ namespace { OperationContextImpl txn; txn.lockState()->setIsBatchWriter(true); - txn.getClient()->getAuthorizationSession()->grantInternalAuthorization(); + AuthorizationSession::get(txn.getClient())->grantInternalAuthorization(); txn.getCurOp()->reset(HostAndPort(), dbInsert); NamespaceString ns(_index["ns"].String()); |