mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-30 19:06:21 +08:00
Implement checking wether snapshot is in progress before continuing
This commit is contained in:
@@ -144,10 +144,10 @@ func (r *Raft) HasJoinedCluster() bool {
|
||||
}
|
||||
|
||||
func (r *Raft) AddVoter(
|
||||
id raft.ServerID,
|
||||
address raft.ServerAddress,
|
||||
prevIndex uint64,
|
||||
timeout time.Duration,
|
||||
id raft.ServerID,
|
||||
address raft.ServerAddress,
|
||||
prevIndex uint64,
|
||||
timeout time.Duration,
|
||||
) error {
|
||||
if r.IsRaftLeader() {
|
||||
raftConfig := r.raft.GetConfiguration()
|
||||
|
||||
Reference in New Issue
Block a user