From 17f5a177bb88c57c740749d3ca87373f0c867b85 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Wed, 4 Jun 2014 16:58:51 -0400 Subject: SERVER-13797 Remove Client::getContext and related --- src/mongo/db/repair_database.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/repair_database.cpp') diff --git a/src/mongo/db/repair_database.cpp b/src/mongo/db/repair_database.cpp index 23f617877f2..6e7fec2a020 100644 --- a/src/mongo/db/repair_database.cpp +++ b/src/mongo/db/repair_database.cpp @@ -249,7 +249,7 @@ namespace mongo { MongoFile::flushAll(true); // need both in case journaling is disabled { Client::Context tempContext( _dbName, _pathString ); - Database::closeDatabase( _dbName, _pathString ); + Database::closeDatabase(_txn, _dbName, _pathString); } MONGO_ASSERT_ON_EXCEPTION( boost::filesystem::remove_all( _path ) ); } @@ -433,7 +433,7 @@ namespace mongo { txn->checkForInterrupt(false); Client::Context tempContext( dbName, reservedPathString ); - Database::closeDatabase( dbName, reservedPathString ); + Database::closeDatabase(txn, dbName, reservedPathString); } // at this point if we abort, we don't want to delete new files @@ -443,7 +443,7 @@ namespace mongo { repairFileDeleter->success(); Client::Context ctx( dbName ); - Database::closeDatabase(dbName, storageGlobalParams.dbpath); + Database::closeDatabase(txn, dbName, storageGlobalParams.dbpath); if ( backupOriginalFiles ) { _renameForBackup( dbName, reservedPath ); -- cgit v1.2.1