Storage Engine API
kv_engine_test_timestamps.cpp File Reference
#include "mongo/db/storage/kv/kv_engine_test_harness.h"
#include <memory>
#include <string>
#include "mongo/bson/timestamp.h"
#include "mongo/db/operation_context_noop.h"
#include "mongo/db/repl/read_concern_level.h"
#include "mongo/db/repl/replication_coordinator.h"
#include "mongo/db/service_context_noop.h"
#include "mongo/db/storage/kv/kv_engine.h"
#include "mongo/db/storage/record_store.h"
#include "mongo/db/storage/snapshot_manager.h"
#include "mongo/stdx/memory.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/clock_source_mock.h"

Namespaces

 mongo
 Copyright (C) 2014 MongoDB Inc.
 

Functions

 mongo::TEST_F (SnapshotManagerTests, ConsistentIfNotSupported)
 
 mongo::TEST_F (SnapshotManagerTests, FailsWithNoCommittedSnapshot)
 
 mongo::TEST_F (SnapshotManagerTests, FailsAfterDropAllSnapshotsWhileYielded)
 
 mongo::TEST_F (SnapshotManagerTests, BasicFunctionality)
 
 mongo::TEST_F (SnapshotManagerTests, UpdateAndDelete)
 
 mongo::TEST_F (SnapshotManagerTests, InsertAndReadOnLocalSnapshot)
 
 mongo::TEST_F (SnapshotManagerTests, UpdateAndDeleteOnLocalSnapshot)
 

Variable Documentation

◆ _client

ServiceContext::UniqueClient _client
private

◆ _counter

Timestamp _counter = Timestamp(1, 0)
private

◆ _opCtx

ServiceContext::UniqueOperationContext _opCtx
private

◆ engine

KVEngine* engine

◆ helper

std::unique_ptr<KVHarnessHelper> helper

◆ rs

std::unique_ptr<RecordStore> rs

◆ service

ServiceContextNoop service

◆ snapshotManager

SnapshotManager* snapshotManager

◆ snapshotOperation

Operation snapshotOperation