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);