method

Store.LockUploadObjects

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

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.

Source adapters/mongodb/upload_locks.go:99

@param ctx
The ctx value.
@param objectKeys
The objectKeys value.
@returns
The declared result.

Related types

  • Store

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