summaryrefslogtreecommitdiffstats
path: root/assets/logo-64.png
diff options
context:
space:
mode:
authorAntony Male <antony.male@gmail.com>2016-06-27 21:18:58 +0000
committerJakob Borg <jakob@nym.se>2016-06-27 21:18:58 +0000
commit7ef2743964a3ab399810912b3aa9fa4c018239a7 (patch)
tree15b0413732c0100a8c8a3f25382076d63758797d /assets/logo-64.png
parenta165838cbddcc1445619202fa4d01f7b9b996e56 (diff)
lib/events: Introduce per-subscription event IDs (fixes #3335)
Events API consumers rely on being able to detect that events were skipped by the fact that the event ID has increased by more than 1. This is documented, and is absolutely necessary when trying to maintain a local model of Syncthing's state. With the introduction of LocalChangeDetected, which is not exposed to the Events API, this contract was broken. This commit introduces separate concepts of a "Global ID" and a "Subscription ID". The Global ID of an event is unique across all subscriptions. The Subscription ID is local to a particular subscription, and always increments by 1. They are both exposed over the Events API, but the Subscription ID uses the key "id" for backwards compatibility, and the "?since=xx" parameter refers to the Subscription ID (making the Global ID for information only). GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3351 LGTM: calmh
Diffstat (limited to 'assets/logo-64.png')
0 files changed, 0 insertions, 0 deletions