MCPcopy
hub / github.com/inkeep/open-knowledge / bumpActiveLockRef

Function bumpActiveLockRef

packages/server/src/process-lock.ts:62–64  ·  view source on GitHub ↗
(lockPath: string)

Source from the content-addressed store, hash-verified

60const activeLockRefs = new Map<string, number>();
61
62function bumpActiveLockRef(lockPath: string): void {
63 activeLockRefs.set(lockPath, (activeLockRefs.get(lockPath) ?? 0) + 1);
64}
65
66function dropActiveLockRef(lockPath: string): boolean {
67 const current = activeLockRefs.get(lockPath);

Callers 1

acquireProcessLockFunction · 0.85

Calls 2

setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected