summaryrefslogtreecommitdiff
path: root/src/mongo/db/repair_database.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repair_database.cpp')
-rw-r--r--src/mongo/db/repair_database.cpp6
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 );