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

Method Check

pkg/domain/schema_validator.go:51–51  ·  view source on GitHub ↗

Check is it valid for a transaction to use schemaVer and related tables, at timestamp txnTS.

(txnTS uint64, schemaVer int64, relatedPhysicalTableIDs []int64, needCheckSchema bool)

Source from the content-addressed store, hash-verified

49 Update(leaseGrantTime uint64, oldSchemaVer, newSchemaVer int64, change *transaction.RelatedSchemaChange)
50 // Check is it valid for a transaction to use schemaVer and related tables, at timestamp txnTS.
51 Check(txnTS uint64, schemaVer int64, relatedPhysicalTableIDs []int64, needCheckSchema bool) (*transaction.RelatedSchemaChange, checkResult)
52 // Stop stops checking the valid of transaction.
53 Stop()
54 // Restart restarts the schema validator after it is stopped.

Callers 15

TestPointGetPlanCacheFunction · 0.65
TestIssue20692Function · 0.65
TestIssue52592Function · 0.65
TestIssue56832Function · 0.65
TestIssue49736PartitionFunction · 0.65
TestFixControl33031Function · 0.65
preparedStmtPointGetFunction · 0.65

Implementers 1

schemaValidatorpkg/domain/schema_validator.go

Calls

no outgoing calls

Tested by 15

TestPointGetPlanCacheFunction · 0.52
TestIssue20692Function · 0.52
TestIssue52592Function · 0.52
TestIssue56832Function · 0.52
TestIssue49736PartitionFunction · 0.52
TestFixControl33031Function · 0.52
preparedStmtPointGetFunction · 0.52