struct

Raft::RPC::InstallSnapshot

Inherits Struct < Value < Object

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.

Constructors

new(term : UInt64, leader_id : String, last_included_index : UInt64, last_included_term : UInt64, offset : UInt64, data : Bytes, done : Bool)
Source

Instance methods

data

Raw snapshot data for this chunk.

Source
done?

true if this is the final chunk of the snapshot.

Source
last_included_index

The last log index included in the snapshot.

Source
last_included_term

The term of the last included log entry.

Source
leader_id

The ID of the leader.

Source
offset

Byte offset of this chunk within the full snapshot.

Source
term

The leader's current term.

Source
type
Source