Storage Engine API
oplog_hack.h File Reference
#include "mongo/base/status.h"
#include "mongo/base/status_with.h"

Go to the source code of this file.

Namespaces

 mongo
 Copyright (C) 2014 MongoDB Inc.
 
 mongo::oploghack
 

Functions

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. More...
 
StatusWith< RecordId > mongo::oploghack::extractKey (const char *data, int len)
 data and len must be the arguments from RecordStore::insert() on an oplog collection. More...