Skip to content

lib/db: Fix and improve removing entries from global (ref #6501) - #7336

Merged
calmh merged 1 commit into
syncthing:mainfrom
imsodin:db/fixNeedRFG
Feb 8, 2021
Merged

calmh merged 1 commit into
syncthing:mainfrom
imsodin:db/fixNeedRFG

Conversation

@imsodin

@imsodin imsodin commented Feb 5, 2021

Copy link
Copy Markdown
Member

Due to a support request about a panic in drop I was looking at the db code once again. And did find something, though I don't see how it would cause a panic. It still is incorrect and I have a test to prove that :)

In the code updating the needs, the check only looks at whether a device needed the file with the old global (using removedFV which is confusing, but at this point equal to globalFV - that's not the problem). However the device might still need the file now, compared to the new global.

@calmh

calmh commented Feb 8, 2021

Copy link
Copy Markdown
Member

Confusing

@calmh
calmh merged commit 46bbc78 into syncthing:main Feb 8, 2021
@imsodin
imsodin deleted the db/fixNeedRFG branch February 8, 2021 09:48
@st-release st-release added this to the v1.14.0 milestone Feb 8, 2021
@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 Feb 9, 2022
@syncthing syncthing locked and limited conversation to collaborators Feb 9, 2022
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.

4 participants