Storage Engine API
oplog_hack.h
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "mongo/base/status.h"
32 #include "mongo/base/status_with.h"
33 
34 namespace mongo {
35 class RecordId;
36 class Timestamp;
37 
38 namespace oploghack {
39 
44 StatusWith<RecordId> keyForOptime(const Timestamp& opTime);
45 
49 StatusWith<RecordId> extractKey(const char* data, int len);
50 
51 } // namespace oploghack
52 } // namespace mongo
StatusWith< RecordId > extractKey(const char *data, int len)
data and len must be the arguments from RecordStore::insert() on an oplog collection.
Definition: oplog_hack.cpp:67
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
std::shared_ptr< void > data
Definition: ephemeral_for_test_record_store_test.cpp:74
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 Recor...
Definition: oplog_hack.cpp:45