diff --git a/src/storage/v3/edge.hpp b/src/storage/v3/edge.hpp index c5cf6c6f7..db2964b68 100644 --- a/src/storage/v3/edge.hpp +++ b/src/storage/v3/edge.hpp @@ -34,13 +34,13 @@ struct Edge { PropertyStore properties; bool deleted; - uint8_t PAD; + // uint8_t PAD; // uint16_t PAD; Delta *delta; }; -// static_assert(alignof(Edge) >= 8, "The Edge should be aligned to at least 8!"); +static_assert(alignof(Edge) >= 8, "The Edge should be aligned to at least 8!"); inline bool operator==(const Edge &first, const Edge &second) { return first.gid == second.gid; } inline bool operator<(const Edge &first, const Edge &second) { return first.gid < second.gid; } diff --git a/src/storage/v3/indices.cpp b/src/storage/v3/indices.cpp index 93573d275..c3dbe6c97 100644 --- a/src/storage/v3/indices.cpp +++ b/src/storage/v3/indices.cpp @@ -368,12 +368,6 @@ LabelIndex::Iterable::Iterable(utils::SkipList::Accessor index_accessor, config_(config), vertex_validator_(&vertex_validator) {} -void LabelIndex::RunGC() { - for (auto &index_entry : index_) { - index_entry.second.run_gc(); - } -} - bool LabelPropertyIndex::Entry::operator<(const Entry &rhs) const { if (value < rhs.value) { return true; @@ -709,13 +703,6 @@ int64_t LabelPropertyIndex::VertexCount(LabelId label, PropertyId property, return static_cast(std::distance(lower_it, upper_it)); } -void LabelPropertyIndex::RunGC() { - // TODO(jbajic) What to do? - // for (auto &index_entry : index_) { - // index_entry.second.run_gc(); - // } -} - void RemoveObsoleteEntries(Indices *indices, const uint64_t clean_up_before_timestamp) { indices->label_index.RemoveObsoleteEntries(clean_up_before_timestamp); indices->label_property_index.RemoveObsoleteEntries(clean_up_before_timestamp); diff --git a/src/storage/v3/indices.hpp b/src/storage/v3/indices.hpp index 4dfacabc2..d8b730a87 100644 --- a/src/storage/v3/indices.hpp +++ b/src/storage/v3/indices.hpp @@ -123,8 +123,6 @@ class LabelIndex { void Clear() { index_.clear(); } - void RunGC(); - private: std::map> index_; Indices *indices_; @@ -240,8 +238,6 @@ class LabelPropertyIndex { void Clear() { index_.clear(); } - void RunGC(); - private: std::map, LabelPropertyIndexContainer> index_; Indices *indices_; diff --git a/src/storage/v3/vertex.hpp b/src/storage/v3/vertex.hpp index f8caaa399..66d7a38e8 100644 --- a/src/storage/v3/vertex.hpp +++ b/src/storage/v3/vertex.hpp @@ -46,7 +46,7 @@ struct VertexData { Delta *delta; }; -// static_assert(alignof(Vertex) >= 8, "The Vertex should be aligned to at least 8!"); +static_assert(alignof(VertexData) >= 8, "The Vertex should be aligned to at least 8!"); using VertexContainer = std::map; using Vertex = VertexContainer::value_type;