MCPcopy Index your code
hub / github.com/coder/coder / AcquireLock

Method AcquireLock

coderd/database/dbauthz/dbauthz.go:1588–1590  ·  view source on GitHub ↗
(ctx context.Context, id int64)

Source from the content-addressed store, hash-verified

1586}
1587
1588func (q *querier) AcquireLock(ctx context.Context, id int64) error {
1589 return q.db.AcquireLock(ctx, id)
1590}
1591
1592func (q *querier) AcquireNotificationMessages(ctx context.Context, arg database.AcquireNotificationMessagesParams) ([]database.AcquireNotificationMessagesRow, error) {
1593 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceNotificationMessage); err != nil {

Callers

nothing calls this directly

Calls 1

AcquireLockMethod · 0.65

Tested by

no test coverage detected