summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2011-03-09 15:16:38 -0500
committerEliot Horowitz <eliot@10gen.com>2011-03-09 15:27:13 -0500
commitb2927d98603a48f4437dd39116e78bf023b4ee8c (patch)
treef3b9e35ea7aa4d065051e315f743f035e7a377a2
parentb3a113564fd8a9984a6030bd0220c5ac43f52403 (diff)
downloadmongo-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.cpp2
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();