Storage Engine API
mongo::DataFileHeader Class Reference

#include <data_file.h>

Public Types

enum  { HeaderSize = 8192 }
 

Public Member Functions

bool uninitialized () const
 
void init (OperationContext *opCtx, int fileno, int filelength, const char *filename)
 
void checkUpgrade (OperationContext *opCtx)
 
bool isEmpty () const
 

Public Attributes

DataFileVersion version
 
int fileLength
 
DiskLoc unused
 unused is the portion of the file that doesn't belong to any allocated extents. More...
 
int unusedLength
 
DiskLoc freeListStart
 
DiskLoc freeListEnd
 
char reserved [8192 - 4 *4 - 8 *3]
 
char data [4]
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
HeaderSize 

Member Function Documentation

◆ checkUpgrade()

void mongo::DataFileHeader::checkUpgrade ( OperationContext *  opCtx)

◆ init()

void mongo::DataFileHeader::init ( OperationContext *  opCtx,
int  fileno,
int  filelength,
const char *  filename 
)

◆ isEmpty()

bool mongo::DataFileHeader::isEmpty ( ) const
inline

◆ uninitialized()

bool mongo::DataFileHeader::uninitialized ( ) const
inline

Member Data Documentation

◆ data

char mongo::DataFileHeader::data[4]

◆ fileLength

int mongo::DataFileHeader::fileLength

◆ freeListEnd

DiskLoc mongo::DataFileHeader::freeListEnd

◆ freeListStart

DiskLoc mongo::DataFileHeader::freeListStart

◆ reserved

char mongo::DataFileHeader::reserved[8192 - 4 *4 - 8 *3]

◆ unused

DiskLoc mongo::DataFileHeader::unused

unused is the portion of the file that doesn't belong to any allocated extents.

-1 = no more

◆ unusedLength

int mongo::DataFileHeader::unusedLength

◆ version

DataFileVersion mongo::DataFileHeader::version

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