Skip to content

Commit

Permalink
txn: remove TxnContextProvider.SetTxnInfoSchema (#45207)
Browse files Browse the repository at this point in the history
close #44361
  • Loading branch information
lcwangchao authored Jul 6, 2023
1 parent c6f5151 commit 63f6b48
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions sessiontxn/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ type TxnContextProvider interface {
TxnAdvisable
// GetTxnInfoSchema returns the information schema used by txn
GetTxnInfoSchema() infoschema.InfoSchema
// SetTxnInfoSchema sets the information schema used by txn.
SetTxnInfoSchema(is infoschema.InfoSchema)
// GetTxnScope returns the current txn scope
GetTxnScope() string
// GetReadReplicaScope returns the read replica scope
Expand Down
4 changes: 0 additions & 4 deletions sessiontxn/isolation/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ func (p *baseTxnContextProvider) GetTxnInfoSchema() infoschema.InfoSchema {
return p.infoSchema
}

func (p *baseTxnContextProvider) SetTxnInfoSchema(is infoschema.InfoSchema) {
p.infoSchema = is
}

// GetTxnScope returns the current txn scope
func (p *baseTxnContextProvider) GetTxnScope() string {
return p.sctx.GetSessionVars().TxnCtx.TxnScope
Expand Down
5 changes: 0 additions & 5 deletions sessiontxn/staleread/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ func (p *StalenessTxnContextProvider) GetTxnInfoSchema() infoschema.InfoSchema {
return p.is
}

// SetTxnInfoSchema sets the information schema used by txn.
func (p *StalenessTxnContextProvider) SetTxnInfoSchema(is infoschema.InfoSchema) {
p.is = is
}

// GetTxnScope returns the current txn scope
func (p *StalenessTxnContextProvider) GetTxnScope() string {
return p.sctx.GetSessionVars().TxnCtx.TxnScope
Expand Down

0 comments on commit 63f6b48

Please sign in to comment.