Skip to content

Commit

Permalink
Some format changes pingcap#18056
Browse files Browse the repository at this point in the history
Signed-off-by: jianyilyu <jianyilyu@126.com>
  • Loading branch information
jianyilyu committed Aug 12, 2020
1 parent a5817da commit c5bfb7d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions executor/insert_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ type InsertValues struct {
lazyFillAutoID bool
memTracker *memory.Tracker

stats *RuntimeStatsWithRpcStats
stats *RuntimeStatsWithRPCStats
snapshot kv.Snapshot
}

//keep executor runtime info like rpcstats
type RuntimeStatsWithRpcStats struct {
//RuntimeStatsWithRPCStats keeps executor runtime info like rpcstats
type RuntimeStatsWithRPCStats struct {
*execdetails.BasicRuntimeStats
*tikv.SnapshotRuntimeStats
}
Expand Down Expand Up @@ -955,7 +955,7 @@ func (e *InsertValues) batchCheckAndInsert(ctx context.Context, rows [][]types.D
e.snapshot = txn.GetSnapshot()
if e.runtimeStats != nil {
snapshotStats := &tikv.SnapshotRuntimeStats{}
e.stats = &RuntimeStatsWithRpcStats{
e.stats = &RuntimeStatsWithRPCStats{
BasicRuntimeStats: e.runtimeStats,
SnapshotRuntimeStats: snapshotStats,
}
Expand Down Expand Up @@ -1034,8 +1034,8 @@ func (e *InsertValues) addRecordWithAutoIDHint(ctx context.Context, row []types.
return nil
}

//fetch executor runtime info like rpcstats
func (e *RuntimeStatsWithRpcStats) String() string {
//fetches executor runtime info like rpcstats
func (e *RuntimeStatsWithRPCStats) String() string {
var basic, rpcStatsStr string
if e.BasicRuntimeStats != nil {
basic = e.BasicRuntimeStats.String()
Expand Down

0 comments on commit c5bfb7d

Please sign in to comment.