diff options
Diffstat (limited to 'src/mongo/db/storage/in_memory/in_memory_engine_test.cpp')
-rw-r--r-- | src/mongo/db/storage/in_memory/in_memory_engine_test.cpp | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/src/mongo/db/storage/in_memory/in_memory_engine_test.cpp b/src/mongo/db/storage/in_memory/in_memory_engine_test.cpp index ec31394baae..1427810637f 100644 --- a/src/mongo/db/storage/in_memory/in_memory_engine_test.cpp +++ b/src/mongo/db/storage/in_memory/in_memory_engine_test.cpp @@ -33,23 +33,25 @@ namespace mongo { - class InMemoryKVHarnessHelper : public KVHarnessHelper { - public: - InMemoryKVHarnessHelper() : _engine( new InMemoryEngine()) {} - - virtual KVEngine* restartEngine() { - // Intentionally not restarting since the in-memory storage engine - // does not persist data across restarts - return _engine.get(); - } +class InMemoryKVHarnessHelper : public KVHarnessHelper { +public: + InMemoryKVHarnessHelper() : _engine(new InMemoryEngine()) {} + + virtual KVEngine* restartEngine() { + // Intentionally not restarting since the in-memory storage engine + // does not persist data across restarts + return _engine.get(); + } - virtual KVEngine* getEngine() { return _engine.get(); } + virtual KVEngine* getEngine() { + return _engine.get(); + } - private: - std::unique_ptr<InMemoryEngine> _engine; - }; +private: + std::unique_ptr<InMemoryEngine> _engine; +}; - KVHarnessHelper* KVHarnessHelper::create() { - return new InMemoryKVHarnessHelper(); - } +KVHarnessHelper* KVHarnessHelper::create() { + return new InMemoryKVHarnessHelper(); +} } |