Skip to content

Commit

Permalink
update trace batchCheckAndInsert
Browse files Browse the repository at this point in the history
Signed-off-by: jyz0309 <45495947@qq.com>
  • Loading branch information
jyz0309 committed Aug 28, 2020
1 parent 7b7b7c8 commit c8287b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executor/insert_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -949,10 +949,10 @@ func (e *InsertValues) batchCheckAndInsert(ctx context.Context, rows [][]types.D
if _, err = prefetchUniqueIndices(ctx, txn, toBeCheckedRows); err != nil {
return err
}
skiplist := make([]bool, len(toBeCheckedRows), len(toBeCheckedRows))
skiplist := make([]bool, len(toBeCheckedRows))
// append warnings and get no duplicated error rows
if span := opentracing.SpanFromContext(ctx); span != nil && span.Tracer() != nil {
span1 := span.Tracer().StartSpan("InsertValue.batchCheckAndInsert", opentracing.ChildOf(span.Context()))
span1 := span.Tracer().StartSpan("InsertValue.batchCheck", opentracing.ChildOf(span.Context()))
defer span1.Finish()
opentracing.ContextWithSpan(ctx, span1)
}
Expand Down

0 comments on commit c8287b9

Please sign in to comment.