From f566edc6427957af40b0fc0e1880dc07e162ecb3 Mon Sep 17 00:00:00 2001 From: Roland Kuehn Date: Sun, 10 Apr 2022 16:42:50 +0200 Subject: [PATCH] Removed alignemnt from RecordIdentifiers --- include/concurrency/metadata.h | 10 +++++----- include/storage/record_identifier.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/concurrency/metadata.h b/include/concurrency/metadata.h index 41ed739..6bb88b1 100644 --- a/include/concurrency/metadata.h +++ b/include/concurrency/metadata.h @@ -56,7 +56,7 @@ class Metadata { _begin_timestamp.store(other._begin_timestamp.load()); _end_timestamp.store(other._end_timestamp.load()); - _next_in_version_chain.store(other._next_in_version_chain.load()); + _next_in_version_chain = other._next_in_version_chain; } ~Metadata() = default; @@ -83,7 +83,7 @@ class Metadata */ [[nodiscard]] storage::RecordIdentifier next_in_version_chain() const { - return _next_in_version_chain.load(); + return _next_in_version_chain; } /** @@ -136,7 +136,7 @@ class Metadata */ void next_in_version_chain(const storage::RecordIdentifier next) { - _next_in_version_chain.store(next); + _next_in_version_chain = next; } /** @@ -158,6 +158,6 @@ class Metadata std::atomic _end_timestamp; // Pointer to the next record in version chain. - std::atomic _next_in_version_chain; + storage::RecordIdentifier _next_in_version_chain; }; -} // namespace beedb::concurrency \ No newline at end of file +} // namespace beedb::concurrency diff --git a/include/storage/record_identifier.h b/include/storage/record_identifier.h index f0f8c2d..30803e0 100644 --- a/include/storage/record_identifier.h +++ b/include/storage/record_identifier.h @@ -26,7 +26,7 @@ namespace beedb::storage { -class alignas(64) RecordIdentifier +class RecordIdentifier { public: static_assert(sizeof(Page::id_t) + sizeof(std::uint16_t) <= sizeof(std::uint64_t));