summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/database.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/database.cpp')
-rw-r--r--src/mongo/db/catalog/database.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/catalog/database.cpp b/src/mongo/db/catalog/database.cpp
index c9356a39258..75f777e2877 100644
--- a/src/mongo/db/catalog/database.cpp
+++ b/src/mongo/db/catalog/database.cpp
@@ -95,11 +95,6 @@ namespace mongo {
if ( BackgroundOperation::inProgForDb( _name ) ) {
log() << "warning: bg op in prog during close db? " << _name << endl;
}
-
- // Before the files are closed, flush any potentially outstanding changes, which might
- // reference this database. Otherwise we will assert when subsequent commit if needed
- // is called and it happens to have write intents for the removed files.
- txn->recoveryUnit()->commitIfNeeded(true);
}
Status Database::validateDBName( const StringData& dbname ) {