--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/71863c7b-acb8-4cee-94fb-05dd01118f28%40chromium.org.
Hi, I have checked your feature with 2 different computers using samba share folder. As you mentioned local sync doesn't work properly with multiple clients. If two computer are simultaneously executed we will have gaps in synced data because each computer tracks own progress marker. Even after browser restarts, local sync can't give store sync data to first computer from the second computer in case if the progress marker of the first computer is ahead of the progress marker of the second computer. I tried to fix this problem. And I see one cheap solution for this problem. Before answering to sync request sync subsystem in browser tries open "lock" located next to local sync file using exclusive write mode. If the browser managed to open "lock" file, the browser rereads local sync file, commits changes or prepares response for "getUpdates" and saves changes to local sync file. In the end unlock "lock" file. If the browser didn't manage to open "lock" file, response will be "throttled". The main idea is to protect local sync state in shared folder with "lock" file so two instance of browsers could read and write it safely.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/12df1282-04a7-4472-b0d6-9ecee788b1c9%40chromium.org.
-- Эдуард Сатдаров https://staff.yandex-team.ru/sath/
> <mailto:chromium-dev+unsub...@chromium.org>.