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

Method doCommitCycle

kayak/commit.go:259–269  ·  view source on GitHub ↗
(req *commitReq)

Source from the content-addressed store, hash-verified

257}
258
259func (r *Runtime) doCommitCycle(req *commitReq) {
260 r.peersLock.RLock()
261 defer r.peersLock.RUnlock()
262
263 if r.role == proto.Leader {
264 defer trace.StartRegion(req.ctx, "commitCycle").End()
265 r.leaderDoCommit(req)
266 } else {
267 r.followerDoCommit(req)
268 }
269}

Callers 1

commitCycleMethod · 0.95

Calls 4

leaderDoCommitMethod · 0.95
followerDoCommitMethod · 0.95
StartRegionFunction · 0.92
EndMethod · 0.45

Tested by

no test coverage detected