MCPcopy Create free account
hub / github.com/actiontech/dtle / SubBigTxJob

Function SubBigTxJob

g/g.go:168–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 }
167}
168func SubBigTxJob() {
169 nv := atomic.AddInt32(&bigTxJobs, -1)
170 if nv == BigTxMaxJobs - 1 {
171 Logger.Debug("big tx job number decreased", "jobs", nv, "max", BigTxMaxJobs)
172 }
173}
174func BigTxReachMax() bool {
175 return atomic.LoadInt32(&bigTxJobs) >= BigTxMaxJobs
176}

Callers 2

initNatsPubClientMethod · 0.92
ShutdownMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected