Storage Engine API
mongo::WiredTigerSizeStorer::SizeInfo Struct Reference

SizeInfo is a thread-safe buffer for keeping track of the number of documents in a collection and their data size. More...

#include <wiredtiger_size_storer.h>

Detailed Description

SizeInfo is a thread-safe buffer for keeping track of the number of documents in a collection and their data size.

Storing a SizeInfo in the WiredTigerSizeStorer results in shared ownership. The SizeInfo may still be updated after it is stored in the SizeStorer. The 'dirty' field is used by the size storer to cheaply merge duplicate stores of the same SizeInfo.

Public Member Functions

 ~SizeInfo ()
 

Public Attributes

AtomicInt64 numRecords
 
AtomicInt64 dataSize
 

Private Attributes

friend WiredTigerSizeStorer
 
AtomicBool _dirty
 

Constructor & Destructor Documentation

◆ ~SizeInfo()

mongo::WiredTigerSizeStorer::SizeInfo::~SizeInfo ( )
inline

Member Data Documentation

◆ _dirty

AtomicBool mongo::WiredTigerSizeStorer::SizeInfo::_dirty
private

◆ dataSize

AtomicInt64 mongo::WiredTigerSizeStorer::SizeInfo::dataSize

◆ numRecords

AtomicInt64 mongo::WiredTigerSizeStorer::SizeInfo::numRecords

◆ WiredTigerSizeStorer

friend mongo::WiredTigerSizeStorer::SizeInfo::WiredTigerSizeStorer
private

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