Skip to content

lib/db: Fix updating/removing from global (ref #6413) - #6635

Merged
calmh merged 5 commits into
syncthing:masterfrom
imsodin:db/fixAllNeed
May 13, 2020
Merged

calmh merged 5 commits into
syncthing:masterfrom
imsodin:db/fixAllNeed

Conversation

@imsodin

@imsodin imsodin commented May 12, 2020

Copy link
Copy Markdown
Member

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".

@calmh calmh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me but who really knows

@calmh

calmh commented May 13, 2020

Copy link
Copy Markdown
Member

I think it's safe to say I don't understand these parts of the code as well as I should any more.

@calmh
calmh merged commit ba4462a into syncthing:master May 13, 2020
@imsodin
imsodin deleted the db/fixAllNeed branch May 13, 2020 11:11
@calmh calmh added this to the v1.7.0 milestone May 14, 2020
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label May 14, 2021
@syncthing syncthing locked and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants