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

beginning header for a journal/j._<n> file there is nothing important int this header at this time. More...

#include <dur_journalformat.h>

Detailed Description

beginning header for a journal/j._<n> file there is nothing important int this header at this time.

except perhaps version #.

Public Types

enum  { CurrentVersion = 0x4149 }
 

Public Member Functions

 JHeader ()
 
 JHeader (std::string fname)
 
bool versionOk () const
 
bool valid () const
 

Public Attributes

char magic [2]
 
unsigned short _version
 
char n1
 
char ts [20]
 
char n2
 
char dbpath [128]
 
char n3
 
char n4
 
unsigned long long fileId
 
char reserved3 [8026]
 
char txt2 [2]
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
CurrentVersion 

Constructor & Destructor Documentation

◆ JHeader() [1/2]

mongo::dur::JHeader::JHeader ( )
inline

◆ JHeader() [2/2]

mongo::dur::JHeader::JHeader ( std::string  fname)

Member Function Documentation

◆ valid()

bool mongo::dur::JHeader::valid ( ) const
inline

◆ versionOk()

bool mongo::dur::JHeader::versionOk ( ) const
inline

Member Data Documentation

◆ _version

unsigned short mongo::dur::JHeader::_version

◆ dbpath

char mongo::dur::JHeader::dbpath[128]

◆ fileId

unsigned long long mongo::dur::JHeader::fileId

◆ magic

char mongo::dur::JHeader::magic[2]

◆ n1

char mongo::dur::JHeader::n1

◆ n2

char mongo::dur::JHeader::n2

◆ n3

char mongo::dur::JHeader::n3

◆ n4

char mongo::dur::JHeader::n4

◆ reserved3

char mongo::dur::JHeader::reserved3[8026]

◆ ts

char mongo::dur::JHeader::ts[20]

◆ txt2

char mongo::dur::JHeader::txt2[2]

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