MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / BeginUpdating

Method BeginUpdating

internal/utils/dbs/db.go:245–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243}
244
245func (this *DB) BeginUpdating() bool {
246 this.statusLocker.Lock()
247 defer this.statusLocker.Unlock()
248
249 if this.isClosing {
250 return false
251 }
252
253 this.countUpdating++
254 return true
255}
256
257func (this *DB) EndUpdating() {
258 this.statusLocker.Lock()

Callers 7

BeginMethod · 0.95
ExecContextMethod · 0.95
ExecMethod · 0.95
beginTxMethod · 0.80
execItemMethod · 0.80
ExecContextMethod · 0.80
ExecMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected