Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Nov 13, 2024
1 parent 671d89f commit bc5e3d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/executor/infoschema_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,7 @@ func getAutoIncrementID(
tblInfo *model.TableInfo,
) int64 {
if raw, ok := is.(*infoschema.SessionExtendedInfoSchema); ok {
v2, ok := raw.InfoSchema.(interface {
TableIsCached(id int64) bool
})
if ok {
if ok, v2 := infoschema.IsV2(raw.InfoSchema); ok {
isCached := v2.TableIsCached(tblInfo.ID)
if !isCached {
// Loading table info from kv storage invalidates the cached auto_increment id.
Expand Down

0 comments on commit bc5e3d1

Please sign in to comment.