Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An issue that caused cloud data corruption #9846

Closed
88250 opened this issue Dec 9, 2023 · 0 comments
Closed

An issue that caused cloud data corruption #9846

88250 opened this issue Dec 9, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@88250
Copy link
Member

88250 commented Dec 9, 2023

原因是因为文档滚动记录为了不产生同步冲突,所以不会改变文件时间戳 #6076 去年 10 月份的时候提交。

在重置仓库(全量创建快照)的时候重新生成了数据分块,但是文件的时间戳和路径都没变,所以数据文件 ID 不会变,和云端快照对比后文件 ID 不变也就认为这个文件数据没变,就不会上传分块(实际上文件的分块已经改变了),所以导致云端数据分块缺失损坏。

解决方案是使用 local storage 保存 scroll 数据,不存放在 .sy 文件里,并移除 WriteFileWithoutChangeTime 相关实现。

@88250 88250 added the Bug label Dec 9, 2023
@88250 88250 added this to the 2.11.2 milestone Dec 9, 2023
88250 added a commit to siyuan-note/dejavu that referenced this issue Dec 9, 2023
88250 added a commit to siyuan-note/filelock that referenced this issue Dec 9, 2023
88250 added a commit to siyuan-note/dejavu that referenced this issue Dec 9, 2023
Vanessa219 added a commit that referenced this issue Dec 9, 2023
Vanessa219 added a commit that referenced this issue Dec 9, 2023
Vanessa219 added a commit that referenced this issue Dec 9, 2023
Vanessa219 added a commit that referenced this issue Dec 9, 2023
Vanessa219 added a commit that referenced this issue Dec 9, 2023
@88250 88250 closed this as completed Dec 10, 2023
88250 added a commit to siyuan-note/dejavu that referenced this issue Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants