Merge pull request #6934 from influxdata/js-fix-regex-binary-encoding

Fix regex binary encoding for a measurement
pull/6942/head
Jonathan A. Sternberg 2016-07-05 12:06:17 -05:00 committed by GitHub
commit e19cc044ac
3 changed files with 3 additions and 2 deletions

View File

@ -79,6 +79,7 @@ With this release the systemd configuration files for InfluxDB will use the syst
- [#6738](https://github.com/influxdata/influxdb/issues/6738): Time sorting broken with overwritten points
- [#6829](https://github.com/influxdata/influxdb/issues/6829): Fix panic: runtime error: index out of range
- [#6911](https://github.com/influxdata/influxdb/issues/6911): Fix fill(previous) when used with math operators.
- [#6934](https://github.com/influxdata/influxdb/issues/6934): Fix regex binary encoding for a measurement.
## v0.13.0 [2016-05-12]

View File

@ -3071,7 +3071,7 @@ func encodeMeasurement(mm *Measurement) *internal.Measurement {
IsTarget: proto.Bool(mm.IsTarget),
}
if mm.Regex != nil {
pb.Regex = proto.String(mm.Regex.String())
pb.Regex = proto.String(mm.Regex.Val.String())
}
return pb
}

View File

@ -999,7 +999,7 @@ func TestIteratorOptions_MarshalBinary_Measurement_Regex(t *testing.T) {
var other influxql.IteratorOptions
if err := other.UnmarshalBinary(buf); err != nil {
t.Fatal(err)
} else if v := other.Sources[0].(*influxql.Measurement).Regex.Val.String(); v != `/series.+/` {
} else if v := other.Sources[0].(*influxql.Measurement).Regex.Val.String(); v != `series.+` {
t.Fatalf("unexpected measurement regex: %s", v)
}
}