Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer committed Mar 28, 2021
1 parent 41b1fe7 commit d3e2067
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/restore/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,13 @@ func (db *DB) CreateTable(ctx context.Context, table *utils.Table) error {
// auto inc id overflow
if table.Info.AutoIncID < 0 {
log.Info("table auto inc id overflow",
zap.Stringer("db", table.Db.Name),
zap.Stringer("db", table.DB.Name),
zap.Stringer("table", table.Info.Name),
zap.Int64("auto inc id", table.Info.AutoIncID),
)
autoIncID = uint64(table.Info.AutoIncID)
} else {
autoIncID = uint64(table.Info.AutoIncID)
}
restoreMetaSQL = fmt.Sprintf(
alterAutoIncIDFormat,
Expand Down

0 comments on commit d3e2067

Please sign in to comment.