This is an automated email from the ASF dual-hosted git repository.

amestry pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 683e267  ATLAS-3702: Edge creation performance improvements. Part 2.
683e267 is described below

commit 683e267bdf2e9461fbfdefe514e1856e32ce8e4b
Author: Ashutosh Mestry <[email protected]>
AuthorDate: Mon Apr 6 16:37:20 2020 -0700

    ATLAS-3702: Edge creation performance improvements. Part 2.
---
 .../atlas/repository/store/graph/v2/AtlasRelationshipStoreV2.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasRelationshipStoreV2.java
 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasRelationshipStoreV2.java
index 6a75ba9..7425ac6 100644
--- 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasRelationshipStoreV2.java
+++ 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasRelationshipStoreV2.java
@@ -781,7 +781,7 @@ public class AtlasRelationshipStoreV2 implements 
AtlasRelationshipStore {
             if (edge != null) {
                 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;
                     break;
                 }

Reply via email to