From fabfa77bd9d3979c8b6b3456d70243540698fa54 Mon Sep 17 00:00:00 2001 From: Marin Tomic Date: Fri, 28 Jun 2019 15:41:43 +0200 Subject: [PATCH] Fix CreateVertex function in storage v2 Summary: We forgot to add the newly created vertex into `modified_vertices` list. Reviewers: teon.banek, mferencevic Reviewed By: mferencevic Differential Revision: https://phabricator.memgraph.io/D2153 --- src/storage/v2/storage.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/v2/storage.hpp b/src/storage/v2/storage.hpp index 2d001b489..0b2025893 100644 --- a/src/storage/v2/storage.hpp +++ b/src/storage/v2/storage.hpp @@ -86,6 +86,7 @@ class Storage final { acc.insert(Vertex{storage::Gid::FromUint(gid), delta}); CHECK(inserted) << "The vertex must be inserted here!"; CHECK(it != acc.end()) << "Invalid Vertex accessor!"; + transaction_->modified_vertices.push_back(&*it); return VertexAccessor::Create(&*it, transaction_, View::NEW).value(); }