javeme commented on code in PR #2295:
URL:
https://github.com/apache/incubator-hugegraph/pull/2295#discussion_r1310633944
##########
hugegraph-core/src/main/java/org/apache/hugegraph/backend/tx/GraphTransaction.java:
##########
@@ -130,9 +114,18 @@ public class GraphTransaction extends IndexableTransaction
{
private final int commitPartOfAdjacentEdges;
private final int batchSize;
private final int pageSize;
-
private final int verticesCapacity;
private final int edgesCapacity;
+ private Map<Id, HugeVertex> addedVertices;
+ private Map<Id, HugeVertex> removedVertices;
+ private Map<Id, HugeEdge> addedEdges;
+ private Map<Id, HugeEdge> removedEdges;
+ private Set<HugeProperty<?>> addedProps;
+ private Set<HugeProperty<?>> removedProps;
+ // These are used to rollback state
+ private Map<Id, HugeVertex> updatedVertices;
+ private Map<Id, HugeEdge> updatedEdges;
+ private Set<HugeProperty<?>> updatedOldestProps; // Oldest props
Review Comment:
can we keep the origin location to avoid conflicts
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]