-
Notifications
You must be signed in to change notification settings - Fork 316
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
volatile needIncreaseTermImmediately #30
Labels
enhancement
enhancement
Comments
IMO, it's necessary. You can submit a PR to polish relate code. |
我可以提PR修复这个问题吗?是否需要对其他类的成员的可见性也做下修改。 |
Of course, any enhancements are welcomed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好,
io.openmessaging.storage.dledger.DLedgerLeaderElector
中属性needIncreaseTermImmediately
最好是设置成volatile类型,保证多线程间内存可见性。The text was updated successfully, but these errors were encountered: