MCPcopy
hub / github.com/pingcap/tidb / releaseToken

Method releaseToken

br/pkg/restore/snap_client/import.go:270–276  ·  view source on GitHub ↗
(tokenCh chan struct{})

Source from the content-addressed store, hash-verified

268}
269
270func (importer *SnapFileImporter) releaseToken(tokenCh chan struct{}) {
271 tokenCh <- struct{}{}
272 // finish the task, notify the main goroutine to continue
273 importer.cond.L.Lock()
274 importer.cond.Signal()
275 importer.cond.L.Unlock()
276}
277
278func (importer *SnapFileImporter) Close() error {
279 if importer != nil && importer.importClient != nil {

Callers 3

batchDownloadSSTMethod · 0.95
downloadSSTMethod · 0.95
ingestMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected