Commit 683e267b by Ashutosh Mestry

ATLAS-3702: Edge creation performance improvements. Part 2.

parent d4858609
...@@ -781,7 +781,7 @@ public class AtlasRelationshipStoreV2 implements AtlasRelationshipStore { ...@@ -781,7 +781,7 @@ public class AtlasRelationshipStoreV2 implements AtlasRelationshipStore {
if (edge != null) { if (edge != null) {
Status status = graphHelper.getStatus(edge); Status status = graphHelper.getStatus(edge);
if ((status == null || status == ACTIVE) && edge.getOutVertex().equals(fromVertex)) { if ((status == null || status == ACTIVE) && edge.getOutVertex().getId().equals(fromVertex.getId())) {
ret = edge; ret = edge;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment