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

Method updateNextIndex

kayak/runtime.go:375–384  ·  view source on GitHub ↗
(ctx context.Context, l *kt.Log)

Source from the content-addressed store, hash-verified

373}
374
375func (r *Runtime) updateNextIndex(ctx context.Context, l *kt.Log) {
376 defer trace.StartRegion(ctx, "updateNextIndex").End()
377
378 r.nextIndexLock.Lock()
379 defer r.nextIndexLock.Unlock()
380
381 if r.nextIndex < l.Index+1 {
382 r.nextIndex = l.Index + 1
383 }
384}
385
386func (r *Runtime) checkIfPrepareFinished(ctx context.Context, index uint64) (finished bool) {
387 defer trace.StartRegion(ctx, "checkIfPrepareFinished").End()

Callers 2

readLogsMethod · 0.95
followerApplyMethod · 0.95

Calls 2

StartRegionFunction · 0.92
EndMethod · 0.45

Tested by

no test coverage detected