return n with error
parent
9541e861a3
commit
ed4e3e130b
|
|
@ -18,7 +18,6 @@ import (
|
|||
"github.com/influxdata/influxdb/kit/tracing"
|
||||
"github.com/influxdata/influxdb/query"
|
||||
"github.com/influxdata/influxdb/query/influxql"
|
||||
"github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
type SourceProxyQueryService struct {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ import (
|
|||
"github.com/influxdata/influxdb/kit/tracing"
|
||||
"github.com/influxdata/influxdb/query"
|
||||
"github.com/influxdata/influxdb/query/influxql"
|
||||
"github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
type SourceProxyQueryService struct {
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ func (s *LoggingServiceBridge) Query(ctx context.Context, w io.Writer, req *Prox
|
|||
}
|
||||
// The results iterator may have had an error independent of encoding errors.
|
||||
if err = results.Err(); err != nil {
|
||||
return 0, tracing.LogError(span, err)
|
||||
return n, tracing.LogError(span, err)
|
||||
}
|
||||
return stats, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue