Repository navigation
lib/db: Fix updating/removing from global (ref #6413) - #6635
Merged
Merged
Conversation
calmh
approved these changes
May 13, 2020
calmh
left a comment
Member
There was a problem hiding this comment.
Looks reasonable to me but who really knows
Member
|
I think it's safe to say I don't understand these parts of the code as well as I should any more. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a weird one: It corrects mistakes in #6413, but those mistakes are "benign". Meaning I only discovered them because I needed to change exactly that code for the global version list refactor and it looked off, however the both the old and corrected code do the same thing in the end. The corrected one is just less convoluted and/or actually takes the shortcuts intended (e.g. the return in line 809).
I suggest to look at it as separate commits: The complete diff is rather ugly, but the first four commits are straightforward (just moving stuff around). The last one isn't entirely straight forward, but it's still much clearer what's going on than in the full diff.
This is sort of a grey area in terms of RC: The PR only changes stuff that's RC specific, but there's also no real bug, in principle just "improvements".