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
This commit is contained in:
Marin Tomic 2019-06-28 15:41:43 +02:00
parent 8169513f57
commit fabfa77bd9

View File

@ -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();
}