Fix CommitLog namespace in storage v2
Reviewers: mtomic Reviewed By: mtomic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2179
This commit is contained in:
parent
26f14443c2
commit
069000a92a
@ -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<Block> allocator_;
|
||||
};
|
||||
|
||||
} // namespace storage
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user