jrgemignani commented on code in PR #1742:
URL: https://github.com/apache/age/pull/1742#discussion_r1561862956


##########
src/backend/utils/adt/age_global_graph.c:
##########
@@ -568,11 +610,13 @@ static void load_edge_hashtable(GRAPH_global_context 
*ggctx)
 
             /* insert the edge into the start and end vertices edge lists */
             inserted = insert_vertex_edge(ggctx, edge_vertex_start_id,
-                                          edge_vertex_end_id, edge_id);
-            /* this insert must not fail */
+                                          edge_vertex_end_id, edge_id,
+                                          edge_label_name);
             if (!inserted)

Review Comment:
   The only time `insert_vertex_edge` will fail to insert is if there is an 
issue with the edge's start and end vertices. This means a malformed or 
dangling edge.



-- 
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]

Reply via email to