Documentation ¶
Index ¶
Constants ¶
View Source
const CHAN_BUFFER_SIZE = 500000
View Source
const FALSE = uint8(0)
View Source
const GRACE_PERIOD = 5 * 1e9
View Source
const HT_INIT_SIZE = 150000
View Source
const MAX_BATCH = 1
View Source
const READ_CHAN_SIZE = 1100000
View Source
const TICKS_TO_RECONF_LEASE = 20
var hackflag int = 2
View Source
const TRUE = uint8(1)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceStatus ¶
type InstanceStatus int8
const ( NONE InstanceStatus = iota PREPARING PREPARED ACCEPTED COMMITTED )
type LeaderBookkeeping ¶
type LeaderBookkeeping struct {
// contains filtered or unexported fields
}
type ReadStats ¶
type ReadStats struct { N int // contains filtered or unexported fields }
func NewReadStats ¶
func (*ReadStats) GetQuorums ¶
func (rs *ReadStats) GetQuorums() []qleaseproto.LeaseMetadata
type Replica ¶
type Replica struct { *genericsmr.Replica // extends a generic Paxos replica IsLeader bool // does this replica think it is the leader Shutdown bool // contains filtered or unexported fields }
func NewReplica ¶
func (*Replica) BeTheLeader ¶
func (r *Replica) BeTheLeader(args *genericsmrproto.BeTheLeaderArgs, reply *genericsmrproto.BeTheLeaderReply) error
Click to show internal directories.
Click to hide internal directories.