Documentation ¶
Index ¶
Constants ¶
View Source
const ( WHITE int8 = iota GRAY BLACK )
View Source
const ADAPT_TIME_SEC = 10
View Source
const BF_K = 4
View Source
const BF_M_N = 32.0
View Source
const COMMIT_GRACE_PERIOD = 10 * 1e9 // 10 second(s)
View Source
const FALSE = uint8(0)
View Source
const HT_INIT_SIZE = 200000
View Source
const MAX_DEPTH_DEP = 10
View Source
const MAX_INSTANCE = 10 * 1024 * 1024
View Source
const TRUE = uint8(1)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeaderBookkeeping ¶
type LeaderBookkeeping struct {
// contains filtered or unexported fields
}
type Replica ¶
type Replica struct { *genericsmr.Replica InstanceSpace [][]*Instance // the space of all instances (used and not yet used) CommittedUpTo []int32 // highest committed instance per replica that this replica knows about ExecedUpTo []int32 // instance up to which all commands have been executed (including iteslf) IsLeader bool // does this replica think it is the leader // contains filtered or unexported fields }
func NewReplica ¶
func NewReplica(replica *genericsmr.Replica, id int, peerAddrList []string, thrifty bool, exec bool, lread bool, dreply bool, beacon bool, durable bool, batchWait int, transconf bool, failures int, storageParentDir string, fastLearn bool, emulatedSS bool, emulatedWriteTime time.Duration, cmpCommitExec bool, cmpCommitExecLoc string, sepExecThread bool, deadTime int32, sendToFastQrm bool) *Replica
func (*Replica) BatchingEnabled ¶
func (*Replica) BeTheLeader ¶
func (r *Replica) BeTheLeader(args *genericsmrproto.BeTheLeaderArgs, reply *genericsmrproto.BeTheLeaderReply) error
type SCComponent ¶
type SCComponent struct {
// contains filtered or unexported fields
}
type ToRecord ¶
type ToRecord struct { CommitExecutionComparator.InstanceID time.Time }
Click to show internal directories.
Click to hide internal directories.