Documentation ¶
Overview ¶
backup implement logic of a backup in VR.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIncomingPrepare ¶
func AddIncomingPrepare(prepare *vrrpc.PrepareArgs) chan vrrpc.PrepareOk
AddIncomingPrepare adds a vrrpc.PrepareArgs to incomingPrepares queue.
func DummyCommitService ¶
func DummyCommitService()
func ProcessIncomingPrepares ¶
Types ¶
type BackupReply ¶
type BackupReply int
BackupReply defines the basic RPCs exported by server.
func (*BackupReply) Prepare ¶
func (r *BackupReply) Prepare(prepare *vrrpc.PrepareArgs, resp *vrrpc.PrepareOk) error
Prepare responds to primary with a PrepareOk message if criteria is met
type PrimaryPrepare ¶
type PrimaryPrepare struct { PrepareArgs vrrpc.PrepareArgs // contains filtered or unexported fields }
PrimaryPrepare represents the in-memory state of a primary prepare message.
Click to show internal directories.
Click to hide internal directories.