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

Method markPendingPrepare

kayak/runtime.go:395–402  ·  view source on GitHub ↗
(ctx context.Context, index uint64)

Source from the content-addressed store, hash-verified

393}
394
395func (r *Runtime) markPendingPrepare(ctx context.Context, index uint64) {
396 defer trace.StartRegion(ctx, "markPendingPrepare").End()
397
398 r.pendingPreparesLock.Lock()
399 defer r.pendingPreparesLock.Unlock()
400
401 r.pendingPrepares[index] = true
402}
403
404func (r *Runtime) markPrepareFinished(ctx context.Context, index uint64) {
405 defer trace.StartRegion(ctx, "markPrepareFinished").End()

Callers 2

doLeaderPrepareMethod · 0.95
followerPrepareMethod · 0.95

Calls 2

StartRegionFunction · 0.92
EndMethod · 0.45

Tested by

no test coverage detected