diff options
author | dwight <dwight@10gen.com> | 2011-03-01 21:20:34 -0500 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-03-01 21:20:34 -0500 |
commit | 0fe9db187a513e6ac0419dae5f06e9625ba3a209 (patch) | |
tree | 3930ab6661942aacd5d245558e85b716b154e32e /db/dur_journal.cpp | |
parent | df7248a721a0c722e0eec2ae5e018299bd41b982 (diff) | |
download | mongo-0fe9db187a513e6ac0419dae5f06e9625ba3a209.tar.gz |
clarify confusing log line
Diffstat (limited to 'db/dur_journal.cpp')
-rw-r--r-- | db/dur_journal.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/db/dur_journal.cpp b/db/dur_journal.cpp index d193c758260..a3a2a493192 100644 --- a/db/dur_journal.cpp +++ b/db/dur_journal.cpp @@ -190,10 +190,12 @@ namespace mongo { /** at clean shutdown */ bool okToCleanUp = false; // successful recovery would set this to true - void Journal::cleanup() { + void Journal::cleanup(bool _log) { if( !okToCleanUp ) return; + if( _log ) + log() << "journalCleanup..." << endl; try { scoped_lock lk(_curLogFileMutex); closeCurrentJournalFile(); @@ -204,7 +206,7 @@ namespace mongo { throw; } } - void journalCleanup() { j.cleanup(); } + void journalCleanup(bool log) { j.cleanup(log); } bool _preallocateIsFaster() { bool faster = false; |