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

group commit section footer. More...

#include <dur_journalformat.h>

Detailed Description

group commit section footer.

md5 is a key field.

Public Member Functions

 JSectFooter ()
 
 JSectFooter (const void *begin, int len)
 
bool checkHash (const void *begin, int len) const
 used by recovery to see if buffer is valid More...
 
bool magicOk () const
 

Public Attributes

unsigned sentinel
 
unsigned char hash [16]
 
unsigned long long reserved
 
char magic [4]
 

Constructor & Destructor Documentation

◆ JSectFooter() [1/2]

mongo::dur::JSectFooter::JSectFooter ( )

◆ JSectFooter() [2/2]

mongo::dur::JSectFooter::JSectFooter ( const void begin,
int  len 
)

Member Function Documentation

◆ checkHash()

bool mongo::dur::JSectFooter::checkHash ( const void begin,
int  len 
) const

used by recovery to see if buffer is valid

Parameters
beginthe buffer
lenbuffer len
Returns
true if buffer looks valid

◆ magicOk()

bool mongo::dur::JSectFooter::magicOk ( ) const
inline

Member Data Documentation

◆ hash

unsigned char mongo::dur::JSectFooter::hash[16]

◆ magic

char mongo::dur::JSectFooter::magic[4]

◆ reserved

unsigned long long mongo::dur::JSectFooter::reserved

◆ sentinel

unsigned mongo::dur::JSectFooter::sentinel

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