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

Method checkIfPrepareFinished

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

Source from the content-addressed store, hash-verified

384}
385
386func (r *Runtime) checkIfPrepareFinished(ctx context.Context, index uint64) (finished bool) {
387 defer trace.StartRegion(ctx, "checkIfPrepareFinished").End()
388
389 r.pendingPreparesLock.RLock()
390 defer r.pendingPreparesLock.RUnlock()
391
392 return !r.pendingPrepares[index]
393}
394
395func (r *Runtime) markPendingPrepare(ctx context.Context, index uint64) {
396 defer trace.StartRegion(ctx, "markPendingPrepare").End()

Callers 2

followerRollbackMethod · 0.95
followerCommitMethod · 0.95

Calls 2

StartRegionFunction · 0.92
EndMethod · 0.45

Tested by

no test coverage detected