parent
06c1c48b3b
commit
1b8fc0c154
|
@ -93,11 +93,8 @@ func (r *Reader) Open() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for s, _ := range r.series {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for s := range r.series {
|
||||
measurement := tsdb.MeasurementFromSeriesKey(s)
|
||||
fields := r.fields[tsdb.MeasurementFromSeriesKey(s)]
|
||||
if fields == nil {
|
||||
|
|
|
@ -107,11 +107,8 @@ func (r *Reader) Open() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for s, _ := range r.series {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for s := range r.series {
|
||||
measurement := tsdb.MeasurementFromSeriesKey(s)
|
||||
fields := r.fields[tsdb.MeasurementFromSeriesKey(s)]
|
||||
if fields == nil {
|
||||
|
|
|
@ -324,12 +324,12 @@ func convertShard(si *tsdb.ShardInfo, tr *tracker) error {
|
|||
default:
|
||||
return fmt.Errorf("Unsupported shard format: %v", si.FormatAsString())
|
||||
}
|
||||
defer reader.Close()
|
||||
|
||||
// Open the shard, and create a converter.
|
||||
if err := reader.Open(); err != nil {
|
||||
return fmt.Errorf("Failed to open %v for conversion: %v", src, err)
|
||||
}
|
||||
defer reader.Close()
|
||||
converter := NewConverter(dst, uint32(opts.TSMSize), tr)
|
||||
|
||||
// Perform the conversion.
|
||||
|
|
Loading…
Reference in New Issue