Skip to content

Commit ac16ad5

Browse files
lonngngaut
authored andcommitted
server: tweak error info(consistent with the previous handleLoadData) (#8626)
1 parent 1d7d01c commit ac16ad5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

infoschema/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Builder struct {
3333
}
3434

3535
// ApplyDiff applies SchemaDiff to the new InfoSchema.
36-
// Return the detal updated table IDs that are produced from SchemaDiff and an error.
36+
// Return the detail updated table IDs that are produced from SchemaDiff and an error.
3737
func (b *Builder) ApplyDiff(m *meta.Meta, diff *model.SchemaDiff) ([]int64, error) {
3838
b.is.schemaMetaVersion = diff.Version
3939
if diff.Type == model.ActionCreateSchema {

server/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ func (cc *clientConn) handleLoadStats(ctx context.Context, loadStatsInfo *execut
866866
return errNotAllowedCommand
867867
}
868868
if loadStatsInfo == nil {
869-
return errors.New("Load stats: info is empty")
869+
return errors.New("load stats: info is empty")
870870
}
871871
err := cc.writeReq(loadStatsInfo.Path)
872872
if err != nil {

0 commit comments

Comments
 (0)