Versions in this module Expand all Collapse all v1 v1.0.9 Apr 20, 2018 Changes in this version + const ResultFail + const ResultSucc + const ResultUnknown + var ErrInfoSchemaChanged = terror.ClassDomain.New(codeInfoSchemaChanged, "Information schema is changed.") + var ErrInfoSchemaExpired = terror.ClassDomain.New(codeInfoSchemaExpired, "Information schema is out of date.") + var RunAutoAnalyze = true + type Domain struct + MockReloadFailed MockFailure + SchemaValidator SchemaValidator + func NewDomain(store kv.Storage, ddlLease time.Duration, statsLease time.Duration, ...) (*Domain, error) + func (do *Domain) Close() + func (do *Domain) CreateStatsHandle(ctx context.Context) + func (do *Domain) DDL() ddl.DDL + func (do *Domain) GetScope(status string) variable.ScopeFlag + func (do *Domain) GetSnapshotInfoSchema(snapshotTS uint64) (infoschema.InfoSchema, error) + func (do *Domain) InfoSchema() infoschema.InfoSchema + func (do *Domain) LoadPrivilegeLoop(ctx context.Context) error + func (do *Domain) NotifyUpdatePrivilege(ctx context.Context) + func (do *Domain) PrivilegeHandle() *privileges.Handle + func (do *Domain) Reload() error + func (do *Domain) StatsHandle() *statistics.Handle + func (do *Domain) Store() kv.Storage + func (do *Domain) SysSessionPool() *pools.ResourcePool + func (do *Domain) UpdateTableStatsLoop(ctx context.Context) error + type EtcdBackend interface + EtcdAddrs func() []string + StartGCWorker func() error + type MockFailure struct + func (m *MockFailure) SetValue(isFailed bool) + type SchemaValidator interface + Check func(txnTS uint64, schemaVer int64, relatedTableIDs []int64) checkResult + Reset func() + Restart func() + Stop func() + Update func(leaseGrantTime uint64, oldSchemaVer, newSchemaVer int64, ...) + func NewSchemaValidator(lease time.Duration) SchemaValidator