From 069000a92a92c4095128410379d362e20daeffe7 Mon Sep 17 00:00:00 2001 From: Matej Ferencevic Date: Fri, 5 Jul 2019 12:47:46 +0200 Subject: [PATCH] Fix CommitLog namespace in storage v2 Reviewers: mtomic Reviewed By: mtomic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2179 --- src/storage/v2/commit_log.hpp | 4 ++++ tests/unit/commit_log_v2.cpp | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/storage/v2/commit_log.hpp b/src/storage/v2/commit_log.hpp index edb34b508..1088dd0d5 100644 --- a/src/storage/v2/commit_log.hpp +++ b/src/storage/v2/commit_log.hpp @@ -7,6 +7,8 @@ #include "utils/memory.hpp" #include "utils/spin_lock.hpp" +namespace storage { + /// This class keeps track of finalized transactions to provide info on the /// oldest active transaction (minimal transaction ID which could still be /// active). @@ -128,3 +130,5 @@ class CommitLog final { utils::SpinLock lock_; utils::Allocator allocator_; }; + +} // namespace storage diff --git a/tests/unit/commit_log_v2.cpp b/tests/unit/commit_log_v2.cpp index 2e1dbafbc..fbc66a3ce 100644 --- a/tests/unit/commit_log_v2.cpp +++ b/tests/unit/commit_log_v2.cpp @@ -3,7 +3,7 @@ #include "gtest/gtest.h" TEST(CommitLog, Simple) { - CommitLog log; + storage::CommitLog log; EXPECT_EQ(log.OldestActive(), 0); log.MarkFinished(1); @@ -14,7 +14,7 @@ TEST(CommitLog, Simple) { } TEST(CommitLog, Fields) { - CommitLog log; + storage::CommitLog log; for (uint64_t i = 0; i < 64; ++i) { log.MarkFinished(i); @@ -33,7 +33,7 @@ TEST(CommitLog, Fields) { } TEST(CommitLog, Blocks) { - CommitLog log; + storage::CommitLog log; for (uint64_t i = 0; i < 8192 * 64; ++i) { log.MarkFinished(i);