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:
parent
8169513f57
commit
fabfa77bd9
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user