diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-06-04 16:58:51 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-06-10 13:57:24 -0400 |
commit | 17f5a177bb88c57c740749d3ca87373f0c867b85 (patch) | |
tree | 15f20261c1c317d77f102ab9cfe4deb0dce492d1 /src/mongo/db/repair_database.cpp | |
parent | 936a568c59f7f0ee80f8b50fabe241e54e80e9ae (diff) | |
download | mongo-17f5a177bb88c57c740749d3ca87373f0c867b85.tar.gz |
SERVER-13797 Remove Client::getContext and related
Diffstat (limited to 'src/mongo/db/repair_database.cpp')
-rw-r--r-- | src/mongo/db/repair_database.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 ); |