Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#45177
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
hawkingrei authored and ti-chi-bot committed Jul 5, 2023
1 parent 613ecc5 commit 17a3f3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion executor/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ import (
"context"
"fmt"
"math"
<<<<<<< HEAD
"math/rand"
"sort"
=======
"net"
>>>>>>> db381848680 (statistic: improve ipv6 for analyze job meta (#45177))
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -2489,7 +2493,7 @@ func AddNewAnalyzeJob(ctx sessionctx.Context, job *statistics.AnalyzeJob) {
logutil.BgLogger().Error("failed to get server info", zap.Error(err))
instance = "unknown"
} else {
instance = fmt.Sprintf("%s:%d", serverInfo.IP, serverInfo.Port)
instance = net.JoinHostPort(serverInfo.IP, strconv.Itoa(int(serverInfo.Port)))
}
statsHandle := domain.GetDomain(ctx).StatsHandle()
err = statsHandle.InsertAnalyzeJob(job, instance, ctx.GetSessionVars().ConnectionID)
Expand Down

0 comments on commit 17a3f3d

Please sign in to comment.