-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
dag: diff: check CIDs in base case when comparing nodes #4767
Conversation
Fixes #4591. License: MIT Signed-off-by: Lucas Molas <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we should check if the data has changed - this is still going to be sort-of broken if there are links in the node and the data is changed.
@whyrusleeping As you implemented |
@magik6k Could you elaborate more on this please? I'm not sure I follow, isn't the CID reflecting the data changes? |
What I mean is that in case where the data changes in top-level node and we have some links, diff won't show any changes:
Note that this is also the current behaviour, not caused by the changes here, so sorry for the confusion. |
@magik6k Thanks for the clarification, I was under the impression that the data was only reserved for the leaf nodes, not that a node could have both data and links. Yes, this was out of the scope of the original issue, but I could open a new one to discuss this further. |
LGTM, lets merge after 0.4.14 ships. Thanks for all the PRs @schomatis :) Keep 'em coming! |
Three in a row! |
dag: diff: check CIDs in base case when comparing nodes
The base case was assuming that the nodes were different (see issue comment).
Fixes #4591.