feat:Fix strong consistency TODOs #3120
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复TODOs的bug #3112
主要修复的代码文件
1.Context::UpdateAppliedIndex 函数修复
2.PersistAppendBinlog 函数中的原子性问题
3.ApplyBinlog 函数中的轮询等待问题
解决问题的思路
1.重新启用applied_win_.Update调用,修复了滑动窗口不同步的问题
2.添加order_mu_互斥锁,确保日志追加和稳定存储的原子性
3.使用条件变量替代轮询等待,优化了异步写入任务的等待机制