Skip to content

Commit

Permalink
txn: delete useless SetTxnInfoSchema in TxnManager (#44362)
Browse files Browse the repository at this point in the history
close #44361
  • Loading branch information
lcwangchao authored Jun 2, 2023
1 parent 4f0c3ba commit 9151f91
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions session/txnmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ func (m *txnManager) GetTxnInfoSchema() infoschema.InfoSchema {
return nil
}

func (m *txnManager) SetTxnInfoSchema(is infoschema.InfoSchema) {
if m.ctxProvider == nil {
return
}
m.ctxProvider.SetTxnInfoSchema(is)
}

func (m *txnManager) GetStmtReadTS() (uint64, error) {
if m.ctxProvider == nil {
return 0, errors.New("context provider not set")
Expand Down
2 changes: 0 additions & 2 deletions sessiontxn/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ type TxnManager interface {
// If the session is not in any transaction, for example: between two autocommit statements,
// this method will return the latest information schema in session that is same with `sessionctx.GetDomainInfoSchema()`
GetTxnInfoSchema() infoschema.InfoSchema
// SetTxnInfoSchema sets the information schema used by txn.
SetTxnInfoSchema(infoschema.InfoSchema)
// GetTxnScope returns the current txn scope
GetTxnScope() string
// GetReadReplicaScope returns the read replica scope
Expand Down

0 comments on commit 9151f91

Please sign in to comment.