summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-12-24 12:56:25 -0500
committerdwight <dwight@10gen.com>2010-12-24 12:56:25 -0500
commitc648a80fb800c35a80015d4d35aa428be639ff36 (patch)
treecab6b606f7f090e87bad6a906353f4df5df82c30 /db
parent192d96eee1a799dd1ec3fdcef0b040a95051c147 (diff)
downloadmongo-c648a80fb800c35a80015d4d35aa428be639ff36.tar.gz
clearer logging
Diffstat (limited to 'db')
-rw-r--r--db/dur_journal.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/db/dur_journal.cpp b/db/dur_journal.cpp
index cb3ecd43d26..129eeb623b2 100644
--- a/db/dur_journal.cpp
+++ b/db/dur_journal.cpp
@@ -126,6 +126,7 @@ namespace mongo {
/** throws */
void removeJournalFiles() {
+ log() << "removeJournalFiles" << endl;
try {
for ( boost::filesystem::directory_iterator i( getJournalDir() );
i != boost::filesystem::directory_iterator();
@@ -140,12 +141,18 @@ namespace mongo {
}
}
}
- boost::filesystem::remove(lsnPath());
+ try {
+ boost::filesystem::remove(lsnPath());
+ }
+ catch(...) {
+ log() << "couldn't remove " << lsnPath().string() << endl;
+ }
}
catch( std::exception& e ) {
log() << "error removing journal files " << e.what() << endl;
throw;
}
+ log() << "removeJournalFiles end" << endl; // temp
}
/** at clean shutdown */