Storage Engine API
mongo::dur::JEntry Struct Reference

an individual write operation within a group commit section. More...

#include <dur_journalformat.h>

Detailed Description

an individual write operation within a group commit section.

Either the entire section should be applied, or nothing. (We check the md5 for the whole section before doing anything on recovery.)

Public Types

enum  OpCodes {
  OpCode_Footer = 0xffffffff, OpCode_DbContext = 0xfffffffe, OpCode_FileCreated = 0xfffffffd, OpCode_DropDb = 0xfffffffc,
  OpCode_Min = 0xfffff000
}
 
enum  { DotNsSuffix = 0x7fffffff, LocalDbBit = 0x80000000 }
 

Public Member Functions

const char * srcData () const
 
int getFileNo () const
 
void setFileNo (int f)
 
bool isNsSuffix () const
 
void setLocalDbContextBit ()
 
bool isLocalDbContext () const
 
void clearLocalDbContextBit ()
 

Static Public Member Functions

static std::string suffix (int fileno)
 

Public Attributes

union {
   unsigned   len
 
   OpCodes   opcode
 
}; 
 
unsigned ofs
 
int _fileNo
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DotNsSuffix 
LocalDbBit 

◆ OpCodes

Enumerator
OpCode_Footer 
OpCode_DbContext 
OpCode_FileCreated 
OpCode_DropDb 
OpCode_Min 

Member Function Documentation

◆ clearLocalDbContextBit()

void mongo::dur::JEntry::clearLocalDbContextBit ( )
inline

◆ getFileNo()

int mongo::dur::JEntry::getFileNo ( ) const
inline

◆ isLocalDbContext()

bool mongo::dur::JEntry::isLocalDbContext ( ) const
inline

◆ isNsSuffix()

bool mongo::dur::JEntry::isNsSuffix ( ) const
inline

◆ setFileNo()

void mongo::dur::JEntry::setFileNo ( int  f)
inline

◆ setLocalDbContextBit()

void mongo::dur::JEntry::setLocalDbContextBit ( )
inline

◆ srcData()

const char* mongo::dur::JEntry::srcData ( ) const
inline

◆ suffix()

static std::string mongo::dur::JEntry::suffix ( int  fileno)
inlinestatic

Member Data Documentation

◆ @13

union { ... }

◆ _fileNo

int mongo::dur::JEntry::_fileNo

◆ len

unsigned mongo::dur::JEntry::len

◆ ofs

unsigned mongo::dur::JEntry::ofs

◆ opcode

OpCodes mongo::dur::JEntry::opcode

The documentation for this struct was generated from the following file: