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

Function BootstrapSession

pkg/session/session.go:3443–3445  ·  view source on GitHub ↗

BootstrapSession bootstrap session and domain.

(store kv.Storage)

Source from the content-addressed store, hash-verified

3441
3442// BootstrapSession bootstrap session and domain.
3443func BootstrapSession(store kv.Storage) (*domain.Domain, error) {
3444 return bootstrapSessionImpl(context.Background(), store, createSessions)
3445}
3446
3447// BootstrapSession4DistExecution bootstrap session and dom for Distributed execution test, only for unit testing.
3448func BootstrapSession4DistExecution(store kv.Storage) (*domain.Domain, error) {

Callers 15

NewClusterFunction · 0.92
prepareBenchSessionFunction · 0.92
prepareForBenchTestFunction · 0.92
bootstrapFunction · 0.92
createTiKVStoreFunction · 0.92
createUnistoreFunction · 0.92
TestDomainSessionFunction · 0.92
TestNormalSessionPoolFunction · 0.92
TestAbnormalSessionPoolFunction · 0.92

Calls 1

bootstrapSessionImplFunction · 0.85

Tested by 15

prepareBenchSessionFunction · 0.74
prepareForBenchTestFunction · 0.74
bootstrapFunction · 0.74
createTiKVStoreFunction · 0.74
createUnistoreFunction · 0.74
TestDomainSessionFunction · 0.74
TestNormalSessionPoolFunction · 0.74
TestAbnormalSessionPoolFunction · 0.74