summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builder.cpp
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2015-05-18 17:23:31 -0400
committerErnie Hershey <ernie.hershey@10gen.com>2015-05-18 17:23:31 -0400
commitd3fda5afd4f1d65f03e0e3ef01ffb82e4f60ce26 (patch)
tree831c13c2d1d05930af0db973b1827474cc37f81e /src/mongo/db/index_builder.cpp
parenta3046362af4cb79a714c95783ca66f87f4d5a827 (diff)
downloadmongo-d3fda5afd4f1d65f03e0e3ef01ffb82e4f60ce26.tar.gz
Revert "Revert "SERVER-18515 Replace OperationContext::getCurOp with CurOp::get(OperationContext*)""
This reverts commit 7147e127644cba2bfa292945557b43664cc31f47.
Diffstat (limited to 'src/mongo/db/index_builder.cpp')
-rw-r--r--src/mongo/db/index_builder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index_builder.cpp b/src/mongo/db/index_builder.cpp
index 6d71ffb185e..1467d8c71a7 100644
--- a/src/mongo/db/index_builder.cpp
+++ b/src/mongo/db/index_builder.cpp
@@ -87,7 +87,7 @@ namespace {
AuthorizationSession::get(txn.getClient())->grantInternalAuthorization();
- txn.getCurOp()->reset(HostAndPort(), dbInsert);
+ CurOp::get(txn)->reset(HostAndPort(), dbInsert);
NamespaceString ns(_index["ns"].String());
ScopedTransaction transaction(&txn, MODE_IX);
@@ -142,7 +142,7 @@ namespace {
}
// Show which index we're building in the curop display.
- txn->getCurOp()->setQuery(_index);
+ CurOp::get(txn)->setQuery(_index);
bool haveSetBgIndexStarting = false;
while (true) {