#include <dur_recover.h>
Public Member Functions | |
void | close () |
void | go (vector< path > &files) |
void | processSection (const void *, unsigned len) |
RecoveryJob () | |
~RecoveryJob () | |
Static Public Member Functions | |
static RecoveryJob & | get () |
Private Member Functions | |
void | _close () |
void | applyEntries (const vector< ParsedJournalEntry > &entries) |
void | applyEntry (const ParsedJournalEntry &entry, bool apply, bool dump) |
bool | processFile (path journalfile) |
bool | processFileBuffer (const void *, unsigned len) |
void | write (const ParsedJournalEntry &entry) |
Private Attributes | |
unsigned long long | _lastDataSyncedFromLastRun |
unsigned long long | _lastSeqMentionedInConsoleLog |
list< boost::shared_ptr < MongoMMF > > | _mmfs |
mongo::mutex | _mx |
bool | _recovering |
Static Private Attributes | |
static RecoveryJob & | _instance |
call go() to execute a recovery from existing journal files.
Definition at line 15 of file dur_recover.h.
mongo::dur::RecoveryJob::RecoveryJob | ( | ) | [inline] |
Definition at line 17 of file dur_recover.h.
mongo::dur::RecoveryJob::~RecoveryJob | ( | ) |
void mongo::dur::RecoveryJob::_close | ( | ) | [private] |
void mongo::dur::RecoveryJob::applyEntries | ( | const vector< ParsedJournalEntry > & | entries | ) | [private] |
void mongo::dur::RecoveryJob::applyEntry | ( | const ParsedJournalEntry & | entry, | |
bool | apply, | |||
bool | dump | |||
) | [private] |
void mongo::dur::RecoveryJob::close | ( | ) |
static RecoveryJob& mongo::dur::RecoveryJob::get | ( | ) | [inline, static] |
Definition at line 23 of file dur_recover.h.
void mongo::dur::RecoveryJob::go | ( | vector< path > & | files | ) |
bool mongo::dur::RecoveryJob::processFile | ( | path | journalfile | ) | [private] |
bool mongo::dur::RecoveryJob::processFileBuffer | ( | const void * | , | |
unsigned | len | |||
) | [private] |
void mongo::dur::RecoveryJob::processSection | ( | const void * | , | |
unsigned | len | |||
) |
void mongo::dur::RecoveryJob::write | ( | const ParsedJournalEntry & | entry | ) | [private] |
RecoveryJob& mongo::dur::RecoveryJob::_instance [static, private] |
Definition at line 41 of file dur_recover.h.
unsigned long long mongo::dur::RecoveryJob::_lastDataSyncedFromLastRun [private] |
Definition at line 34 of file dur_recover.h.
unsigned long long mongo::dur::RecoveryJob::_lastSeqMentionedInConsoleLog [private] |
Definition at line 35 of file dur_recover.h.
list<boost::shared_ptr<MongoMMF> > mongo::dur::RecoveryJob::_mmfs [private] |
Definition at line 32 of file dur_recover.h.
mongo::mutex mongo::dur::RecoveryJob::_mx [private] |
Definition at line 37 of file dur_recover.h.
bool mongo::dur::RecoveryJob::_recovering [private] |
Definition at line 39 of file dur_recover.h.