mongo::dur Namespace Reference

Classes

class  Already
class  CommitJob
class  DropDbOp
class  DurableImpl
class  DurableInterface
class  DurOp
class  FileCreatedOp
struct  JDbContext
struct  JEntry
struct  JHeader
class  Journal
struct  JSectFooter
struct  JSectHeader
struct  LSNFile
class  NonDurableImpl
class  RecoveryJob
struct  Stats
struct  WriteIntent
class  Writes

Functions

void assertAlreadyDeclared (void *, int len)
unsigned long long getLastDataFileFlushTime ()
bool haveJournalFiles ()
void journal (const AlignedBuilder &buf)
void journalCleanup ()
void journalingFailure (const char *msg)
void journalMakeDir ()
unsigned long long journalReadLSN ()
void journalRotate ()
void releasingWriteLock ()
void REMAPPRIVATEVIEW ()
void startup ()

Variables

const unsigned Alignment = 8192
CommitJob commitJob
const long long ExtraKeepTimeMs = 10000
bool okToCleanUp
Stats stats
const unsigned UncommittedBytesLimit = 100 * 1024 * 1024

Function Documentation

void mongo::dur::assertAlreadyDeclared ( void *  ,
int  len 
) [inline]

Definition at line 148 of file dur_commitjob.h.

unsigned long long mongo::dur::getLastDataFileFlushTime (  ) 
bool mongo::dur::haveJournalFiles (  ) 

never throws.

Returns:
true if there are any journal files in the journal dir.
void mongo::dur::journal ( const AlignedBuilder &  buf  ) 

write/append to journal file *

Parameters:
buf - a buffer that will be written to the journal. will not return until on disk
void mongo::dur::journalCleanup (  ) 

at termination after db files closed & fsynced

void mongo::dur::journalingFailure ( const char *  msg  ) 

flag that something has gone wrong during writing to the journal (not for recovery mode)

void mongo::dur::journalMakeDir (  ) 

assure journal/ dir exists. throws

unsigned long long mongo::dur::journalReadLSN (  ) 

read lsn from disk from the last run before doing recovery

void mongo::dur::journalRotate (  ) 

check if time to rotate files; assure a file is open. done separately from the journal() call as we can do this part outside of lock. only called by durThread.

void mongo::dur::releasingWriteLock (  ) 
void mongo::dur::REMAPPRIVATEVIEW (  ) 
void mongo::dur::startup (  ) 

Call during startup so durability module can initialize Throws if fatal error Does nothing if cmdLine.dur is false


Variable Documentation

const unsigned mongo::dur::Alignment = 8192

Definition at line 31 of file durop.h.

const long long mongo::dur::ExtraKeepTimeMs = 10000

Definition at line 65 of file dur_journal.h.

true if ok to cleanup journal files at termination. otherwise, files journal will be retained.

const unsigned mongo::dur::UncommittedBytesLimit = 100 * 1024 * 1024

Definition at line 18 of file dur.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:58 2013