mongo::IdTracker Class Reference
#include <repl.h>
List of all members.
Public Member Functions |
| void | haveId (const char *ns, const BSONObj &id, bool val) |
| bool | haveId (const char *ns, const BSONObj &id) |
| void | haveModId (const char *ns, const BSONObj &id, bool val) |
| bool | haveModId (const char *ns, const BSONObj &id) |
| | IdTracker () |
| bool | inMem () const |
| void | mayUpgradeStorage () |
| void | reset (int maxMem=replSettings.opIdMem) |
Private Member Functions |
| template<class T > |
| bool | get (T &ids, const char *ns, const BSONObj &id) |
| template<class T > |
| void | set (T &ids, const char *ns, const BSONObj &id, bool val) |
| void | upgrade (MemIds &a, DbIds &b) |
Private Attributes |
| DbIds | dbIds_ |
| DbIds | dbModIds_ |
| bool | inMem_ |
| int | maxMem_ |
| MemIds | memIds_ |
| MemIds | memModIds_ |
Detailed Description
Definition at line 249 of file repl.h.
Constructor & Destructor Documentation
| mongo::IdTracker::IdTracker |
( |
|
) |
[inline] |
Member Function Documentation
template<class T >
| bool mongo::IdTracker::get |
( |
T & |
ids, |
|
|
const char * |
ns, |
|
|
const BSONObj & |
id | |
|
) |
| | [inline, private] |
| void mongo::IdTracker::haveId |
( |
const char * |
ns, |
|
|
const BSONObj & |
id, |
|
|
bool |
val | |
|
) |
| | [inline] |
| bool mongo::IdTracker::haveId |
( |
const char * |
ns, |
|
|
const BSONObj & |
id | |
|
) |
| | [inline] |
| void mongo::IdTracker::haveModId |
( |
const char * |
ns, |
|
|
const BSONObj & |
id, |
|
|
bool |
val | |
|
) |
| | [inline] |
| bool mongo::IdTracker::haveModId |
( |
const char * |
ns, |
|
|
const BSONObj & |
id | |
|
) |
| | [inline] |
| bool mongo::IdTracker::inMem |
( |
|
) |
const [inline] |
| void mongo::IdTracker::mayUpgradeStorage |
( |
|
) |
[inline] |
| void mongo::IdTracker::reset |
( |
int |
maxMem = replSettings.opIdMem |
) |
[inline] |
template<class T >
| void mongo::IdTracker::set |
( |
T & |
ids, |
|
|
const char * |
ns, |
|
|
const BSONObj & |
id, |
|
|
bool |
val | |
|
) |
| | [inline, private] |
| void mongo::IdTracker::upgrade |
( |
MemIds & |
a, |
|
|
DbIds & |
b | |
|
) |
| | [inline, private] |
Member Data Documentation
The documentation for this class was generated from the following file: