MCPcopy Index your code
hub / github.com/inkeep/open-knowledge / dropActiveLockRef

Function dropActiveLockRef

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

Source from the content-addressed store, hash-verified

64}
65
66function dropActiveLockRef(lockPath: string): boolean {
67 const current = activeLockRefs.get(lockPath);
68 if (current === undefined || current <= 1) {
69 activeLockRefs.delete(lockPath);
70 return true;
71 }
72 activeLockRefs.set(lockPath, current - 1);
73 return false;
74}
75
76function parseLock(lockPath: string, logPrefix: string): ProcessLockMetadata | null {
77 try {

Callers 1

releaseProcessLockFunction · 0.85

Calls 3

deleteMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected