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

segment原子性 #202

Open
leechliao opened this issue Aug 17, 2022 · 1 comment
Open

segment原子性 #202

leechliao opened this issue Aug 17, 2022 · 1 comment

Comments

@leechliao
Copy link

既然Segment的value需要保持原子性,为什么max、step不做原子性保护

@wangjibo0102
Copy link

max和step用cas已经添加了原子操作
image
cas保证只有一个现成可以执行updateSegmentFromDb方法 修改max和step 参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants