Storage Engine API
mongo::oploghack Namespace Reference

Functions

StatusWith< RecordId > keyForOptime (const Timestamp &opTime)
 Converts Timestamp to a RecordId in an unspecified manor that is safe to use as the key to in a RecordStore. More...
 
StatusWith< RecordId > extractKey (const char *data, int len)
 data and len must be the arguments from RecordStore::insert() on an oplog collection. More...
 

Function Documentation

◆ extractKey()

StatusWith< RecordId > mongo::oploghack::extractKey ( const char *  data,
int  len 
)

data and len must be the arguments from RecordStore::insert() on an oplog collection.

◆ keyForOptime()

StatusWith< RecordId > mongo::oploghack::keyForOptime ( const Timestamp &  opTime)

Converts Timestamp to a RecordId in an unspecified manor that is safe to use as the key to in a RecordStore.