From 92593d1af174244ba5560be29908b4f729fec78c Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Thu, 26 Mar 2015 16:40:28 -0400 Subject: SERVER-17758 Move AutoGet* and Client::*Context to their own file. The new file is mongo/db/db_raii.h. Also, Client::Context is now OldClientContext and Client::WriteContext is OldClientWriteContext. --- src/mongo/db/index_builder.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/index_builder.cpp') diff --git a/src/mongo/db/index_builder.cpp b/src/mongo/db/index_builder.cpp index b50bdf552a2..62eef061ff6 100644 --- a/src/mongo/db/index_builder.cpp +++ b/src/mongo/db/index_builder.cpp @@ -33,12 +33,13 @@ #include "mongo/db/index_builder.h" #include "mongo/db/auth/authorization_session.h" -#include "mongo/db/client.h" -#include "mongo/db/curop.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/database_holder.h" #include "mongo/db/catalog/index_create.h" +#include "mongo/db/client.h" #include "mongo/db/concurrency/write_conflict_exception.h" +#include "mongo/db/curop.h" +#include "mongo/db/db_raii.h" #include "mongo/db/operation_context_impl.h" #include "mongo/util/assert_util.h" #include "mongo/util/log.h" @@ -91,7 +92,7 @@ namespace { ScopedTransaction transaction(&txn, MODE_IX); Lock::DBLock dlk(txn.lockState(), ns.db(), MODE_X); - Client::Context ctx(&txn, ns.getSystemIndexesCollection()); + OldClientContext ctx(&txn, ns.getSystemIndexesCollection()); Database* db = dbHolder().get(&txn, ns.db().toString()); -- cgit v1.2.1