diff options
author | Mathias Stearn <mathias@10gen.com> | 2011-03-09 15:16:38 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-03-09 15:27:13 -0500 |
commit | b2927d98603a48f4437dd39116e78bf023b4ee8c (patch) | |
tree | f3b9e35ea7aa4d065051e315f743f035e7a377a2 | |
parent | b3a113564fd8a9984a6030bd0220c5ac43f52403 (diff) | |
download | mongo-b2927d98603a48f4437dd39116e78bf023b4ee8c.tar.gz |
Don't rotate and open a journal file if one isn't already opened SERVER-2655 180
-rw-r--r-- | db/dur_journal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/dur_journal.cpp b/db/dur_journal.cpp index c4c16f9631c..8b45ff1bece 100644 --- a/db/dur_journal.cpp +++ b/db/dur_journal.cpp @@ -515,7 +515,7 @@ namespace mongo { scoped_lock lk(_curLogFileMutex); - if ( inShutdown() ) + if ( inShutdown() || !_curLogFile ) return; j.updateLSNFile(); |