method

Store.LockUploadObjects

LockUploadObjects acquires one separately committed exact-owner lock set. Acquisition is all-or-none, and rows remain held until release. Graceful shutdown must drain callers before Store.Close; crash-abandoned rows require explicit operator recovery.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
objectKeys[]stringThe objectKeys value.

Returns

The declared result.

(func(), error)

Full signature

func (backend *Store) LockUploadObjects( ctx context.Context, objectKeys []string, ) (func(), error)

Source adapters/mongodb/upload_locks.go:99

Related types

  • Store

    A replica-set implementation of Ridu’s document, snapshot, auth, preference, task, lock, upload, readiness, and migration contracts.