summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builder.cpp
diff options
context:
space:
mode:
authorKyle Suarez <kyle.suarez@mongodb.com>2018-04-30 10:25:12 -0400
committerKyle Suarez <kyle.suarez@mongodb.com>2018-04-30 11:14:59 -0400
commita9b53ada0db65e6ee341260c3256e960bac56a94 (patch)
tree17f359614f594c9427e982faa665578a05bd8728 /src/mongo/db/index_builder.cpp
parent69b6d9846e3fae2fea9313757c7563b1061cf585 (diff)
downloadmongo-a9b53ada0db65e6ee341260c3256e960bac56a94.tar.gz
Revert "SERVER-32645 Create a shim helper framework."
This reverts commit 2227f272a7a0a3e43625cb2d4a2704e1ccb6f893.
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 d915fc6590b..ab927cfc54b 100644
--- a/src/mongo/db/index_builder.cpp
+++ b/src/mongo/db/index_builder.cpp
@@ -98,7 +98,7 @@ void IndexBuilder::run() {
Lock::DBLock dlk(opCtx.get(), ns.db(), MODE_X);
OldClientContext ctx(opCtx.get(), ns.getSystemIndexesCollection());
- Database* db = DatabaseHolder::getDatabaseHolder().get(opCtx.get(), ns.db().toString());
+ Database* db = dbHolder().get(opCtx.get(), ns.db().toString());
Status status = _build(opCtx.get(), db, true, &dlk);
if (!status.isOK()) {
@@ -210,7 +210,7 @@ Status IndexBuilder::_build(OperationContext* opCtx,
if (allowBackgroundBuilding) {
dbLock->relockWithMode(MODE_X);
- Database* reloadDb = DatabaseHolder::getDatabaseHolder().get(opCtx, ns.db());
+ Database* reloadDb = dbHolder().get(opCtx, ns.db());
fassert(28553, reloadDb);
fassert(28554, reloadDb->getCollection(opCtx, ns));
}