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

并发更新的问题 #173

Open
hunjixin opened this issue Jul 30, 2024 · 2 comments
Open

并发更新的问题 #173

hunjixin opened this issue Jul 30, 2024 · 2 comments
Labels
bug Something isn't working P2 Medium - we should get to this soon

Comments

@hunjixin
Copy link
Collaborator

在并发更新时候会互相覆盖,需要一种合适的机制处理这个问题

@hunjixin hunjixin added bug Something isn't working P2 Medium - we should get to this soon labels Jul 30, 2024
@hunjixin
Copy link
Collaborator Author

分支草稿中加入一个更新锁,

@hunjixin
Copy link
Collaborator Author

  1. 更新锁保护提交的原子性
  2. 线下提前构建tree结构,计算出文件根, 通过裸提交接口差分提交文件,最后统一更新tree root。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2 Medium - we should get to this soon
Projects
None yet
Development

No branches or pull requests

1 participant