From ab40115b1e734bf519a90891f2fd6b55150269fb Mon Sep 17 00:00:00 2001 From: Josip Mrden Date: Mon, 23 Oct 2023 12:24:41 +0200 Subject: [PATCH] Remove some merge invalid actions --- src/storage/v2/disk/storage.hpp | 35 --------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/storage/v2/disk/storage.hpp b/src/storage/v2/disk/storage.hpp index 067f61e11..a19e953ba 100644 --- a/src/storage/v2/disk/storage.hpp +++ b/src/storage/v2/disk/storage.hpp @@ -170,41 +170,6 @@ class DiskStorage final : public Storage { const std::set &properties) override; bool UniqueConstraintExists(const LabelId &label, const PropertyId &property) const override; - - private: - /// Flushes vertices and edges to the disk with the commit timestamp. - /// At the time of calling, the commit_timestamp_ must already exist. - /// After this method, the vertex and edge caches are cleared. - - [[nodiscard]] utils::BasicResult FlushIndexCache(); - - [[nodiscard]] utils::BasicResult FlushDeletedVertices(); - - [[nodiscard]] utils::BasicResult FlushDeletedEdges(); - - [[nodiscard]] utils::BasicResult FlushVertices( - const auto &vertex_acc, std::vector> &unique_storage); - - [[nodiscard]] utils::BasicResult FlushModifiedEdges(const auto &edge_acc); - - [[nodiscard]] utils::BasicResult ClearDanglingVertices(); - - [[nodiscard]] utils::BasicResult CheckVertexConstraintsBeforeCommit( - const Vertex &vertex, std::vector> &unique_storage) const; - - bool WriteVertexToVertexColumnFamily(const Vertex &vertex); - bool WriteEdgeToEdgeColumnFamily(const std::string &serialized_edge_key, const std::string &serialized_edge_value); - - bool WriteEdgeToConnectivityIndex(const std::string &vertex_gid, const std::string &edge_gid, - rocksdb::ColumnFamilyHandle *handle, std::string mode); - - bool DeleteVertexFromDisk(const std::string &vertex_gid, const std::string &vertex); - - bool DeleteEdgeFromEdgeColumnFamily(const std::string &edge_gid); - bool DeleteEdgeFromDisk(const std::string &edge_gid, const std::string &src_vertex_gid, - const std::string &dst_vertex_gid); - bool DeleteEdgeFromConnectivityIndex(const std::string &vertex_gid, const std::string &edge_gid, - rocksdb::ColumnFamilyHandle *handle, std::string mode); }; std::unique_ptr Access(std::optional override_isolation_level) override;