| 7682 | } |
| 7683 | |
| 7684 | static cbm_node_hop_t *bfs_rows_next(bfs_rows_t *rows) { |
| 7685 | if (rows->count >= rows->cap) { |
| 7686 | rows->cap *= ST_GROWTH; |
| 7687 | rows->visited = safe_realloc(rows->visited, rows->cap * sizeof(cbm_node_hop_t)); |
| 7688 | } |
| 7689 | return &rows->visited[rows->count++]; |
| 7690 | } |
| 7691 | |
| 7692 | /* The recursive CTE: trail (relationship-unique, for Cypher) or shortest-path. */ |
| 7693 | static int bfs_visit_sql(cbm_store_t *s, const bfs_query_t *q, bfs_rows_t *rows, int *cte_rows, |
no test coverage detected