struct
Raft::RPC::InstallSnapshot
- Raft::RPC::InstallSnapshot
- Struct
- Value
- Object
Overview
Sent by the leader to transfer a snapshot to a lagging follower.
Large snapshots are sent in multiple chunks. Each chunk carries an #offset
and #data slice. The final chunk sets done to true.
Defined in:
raft/rpc.crConstructors
Instance Method Summary
-
#data : Bytes
Raw snapshot data for this chunk.
-
#done? : Bool
trueif this is the final chunk of the snapshot. -
#last_included_index : UInt64
The last log index included in the snapshot.
-
#last_included_term : UInt64
The term of the last included log entry.
-
#leader_id : String
The ID of the leader.
-
#offset : UInt64
Byte offset of this chunk within the full snapshot.
-
#term : UInt64
The leader's current term.
- #type : Type
Constructor Detail
def self.new(term : UInt64, leader_id : String, last_included_index : UInt64, last_included_term : UInt64, offset : UInt64, data : Bytes, done : Bool)
#