Permalink
Browse files

Open a journal file on startup 180

  • Loading branch information...
1 parent b2927d9 commit 460d32f86ba837a4f1dd41cfeb65eddee41df65f @RedBeard0531 RedBeard0531 committed with erh Mar 9, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 db/dur_journal.cpp
  2. +1 −1 db/dur_journalimpl.h
View
1 db/dur_journal.cpp
@@ -262,6 +262,7 @@ namespace mongo {
log() << "warning caught exception in preallocateFiles, continuing" << endl;
}
}
+ j.open();
}
void removeOldJournalFile(path p) {
View
2 db/dur_journalimpl.h
@@ -63,10 +63,10 @@ namespace mongo {
_open();
}
- private:
/** open a journal file to journal operations to. */
void open();
+ private:
void _open();
void closeCurrentJournalFile();
void removeUnneededJournalFiles();

0 comments on commit 460d32f

Please sign in to comment.