Skip to content

lib/db: Update global meta even if unchanged (fixes #6850) - #6852

Merged
calmh merged 1 commit into
syncthing:mainfrom
imsodin:db/recvOnlyToIgn
Jul 24, 2020
Merged

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

Conversation

@imsodin

@imsodin imsodin commented Jul 24, 2020

Copy link
Copy Markdown
Member

In the global list we don't have an info on why a file is invalid, e.g. if it's a receive-only item or ignored. However that's relevant for metadata accounting. Thus we now always remove the old global and add the new global from metadata, even if from the perspective of the global list nothing changed (i.e. versions equal and both invalid or not).

@calmh
calmh merged commit 08e0f93 into syncthing:main Jul 24, 2020
saimonn pushed a commit to saimonn/syncthing that referenced this pull request Jul 24, 2020
@imsodin
imsodin deleted the db/recvOnlyToIgn branch July 24, 2020 11:49
calmh added a commit to calmh/syncthing that referenced this pull request Jul 27, 2020
* main:
  lib/db: Update global meta even if unchanged (fixes syncthing#6850) (syncthing#6852)
@calmh calmh added this to the v1.9.0 milestone Jul 28, 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 Jul 25, 2021
@syncthing syncthing locked and limited conversation to collaborators Jul 25, 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