We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当前raftlog 文件列表 包含 log_0-10, log_11_20, log_21_30, log_inprogress_31 此时执行truncate_suffix(15). 执行完成后文件列表变为 log_0_10, log_inprogress_11 此时执行SegmentLogStorage->segments() 会返回两个 log_0_10, 和log_inprogress两个文件。正常情况下 应该将 log_inprogress_11从_segments 里移除 https://github.com/baidu/braft/blob/master/src/braft/log.cpp#L930 这里swap的时候还需要 _segments.erase(last_segment->first_index());
log_0-10, log_11_20, log_21_30, log_inprogress_31
log_0_10, log_inprogress_11
The text was updated successfully, but these errors were encountered:
#293
Sorry, something went wrong.
No branches or pull requests
当前raftlog 文件列表 包含
log_0-10, log_11_20, log_21_30, log_inprogress_31
此时执行truncate_suffix(15). 执行完成后文件列表变为
log_0_10, log_inprogress_11
此时执行SegmentLogStorage->segments() 会返回两个 log_0_10, 和log_inprogress两个文件。正常情况下 应该将 log_inprogress_11从_segments 里移除
https://github.com/baidu/braft/blob/master/src/braft/log.cpp#L930 这里swap的时候还需要 _segments.erase(last_segment->first_index());
The text was updated successfully, but these errors were encountered: