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

journaling stats. More...

#include <dur_stats.h>

Detailed Description

journaling stats.

the model here is that the commit thread is the only writer, and that reads are uncommon (from a serverStatus command and such). Thus, there should not be multicore chatter overhead.

Classes

struct  S
 

Public Member Functions

 Stats ()
 
void reset ()
 
BSONObj asObj () const
 
const Scurr () const
 
Scurr ()
 

Private Attributes

S _stats [5]
 
unsigned _currIdx
 

Constructor & Destructor Documentation

◆ Stats()

mongo::dur::Stats::Stats ( )

Member Function Documentation

◆ asObj()

BSONObj mongo::dur::Stats::asObj ( ) const

◆ curr() [1/2]

const S* mongo::dur::Stats::curr ( ) const
inline

◆ curr() [2/2]

S* mongo::dur::Stats::curr ( )
inline

◆ reset()

void mongo::dur::Stats::reset ( )

Member Data Documentation

◆ _currIdx

unsigned mongo::dur::Stats::_currIdx
private

◆ _stats

S mongo::dur::Stats::_stats[5]
private

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