MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / leaderLogRollback

Method leaderLogRollback

kayak/processes.go:128–133  ·  view source on GitHub ↗
(ctx context.Context, tm *timer.Timer, i uint64)

Source from the content-addressed store, hash-verified

126}
127
128func (r *Runtime) leaderLogRollback(ctx context.Context, tm *timer.Timer, i uint64) (*kt.Log, error) {
129 defer trace.StartRegion(ctx, "leaderLogRollback").End()
130 defer tm.Add("leader_log_rollback")
131 // just write new log
132 return r.newLog(ctx, kt.LogRollback, r.uint64ToBytes(i))
133}
134
135func (r *Runtime) followerPrepare(ctx context.Context, tm *timer.Timer, l *kt.Log, checkPrepare bool) (err error) {
136 defer func() {

Callers 1

doLeaderRollbackMethod · 0.95

Calls 5

newLogMethod · 0.95
uint64ToBytesMethod · 0.95
StartRegionFunction · 0.92
EndMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected