baidu / braft

An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.86k stars 865 forks source link

Fix raft_sync bug when segment is closed #371

Open lhsoft opened 1 year ago

lhsoft commented 1 year ago

if raft_sync is enabled and raft_sync_segments isn't enabled, it will cause data loss when the pre segment is closed.