Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded Graph case in handler::finalize #236

Closed
wants to merge 1 commit into from

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant