mirror of
				https://github.com/EchoVault/SugarDB.git
				synced 2025-10-31 11:26:52 +08:00 
			
		
		
		
	Created basic handling for taking snapshots. Will implemented error when snapshot in progress and propagation of snapshot command to the rest of the cluster
This commit is contained in:
		| @@ -183,6 +183,10 @@ func (r *Raft) RemoveServer(meta memberlist.NodeMeta) error { | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func (r *Raft) TakeSnapshot() error { | ||||
| 	return r.raft.Snapshot().Error() | ||||
| } | ||||
|  | ||||
| func (r *Raft) RaftShutdown(ctx context.Context) { | ||||
| 	// Leadership transfer if current node is the leader | ||||
| 	if r.IsRaftLeader() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kelvin Clement Mwinuka
					Kelvin Clement Mwinuka