Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Remove unneeded Graph case in handler::finalize#236

Closed
julianmi wants to merge 1 commit intosycl-graph-developfrom
julianmi/fix-double-root-nodes
Closed

Remove unneeded Graph case in handler::finalize#236
julianmi wants to merge 1 commit intosycl-graph-developfrom
julianmi/fix-double-root-nodes

Conversation

@julianmi
Copy link
Collaborator

Fixes an issue in CommandGraphTest.AddNode where an empty node without dependencies would lead to two root nodes being added to the graph. The first is added in the special Graph case in handler::finalize and the second in graph_impl::add(const std::vector<std::shared_ptr<node_impl>> &Dep). I think the first is not needed anymore and propose to remove it.

@julianmi julianmi added the bug Something isn't working label Jun 20, 2023
@julianmi julianmi marked this pull request as draft June 20, 2023 14:06
@julianmi
Copy link
Collaborator Author

This breaks record and replay of empty nodes. I will revise this patch.

@julianmi julianmi closed this Jun 20, 2023
@julianmi julianmi deleted the julianmi/fix-double-root-nodes branch June 20, 2023 14:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant