Skip to content

Commit

Permalink
Merge pull request #7153 from influxdata/js-7152-delete-series-causes…
Browse files Browse the repository at this point in the history
…-incorrect-measurement-statistic

Decrement number of measurements only once when deleting the last series from a measurement
  • Loading branch information
jsternberg authored Aug 15, 2016
2 parents b84dbfd + 6b5b24a commit a0004b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
### Bugfixes

- [#1834](https://github.com/influxdata/influxdb/issues/1834): Drop time when used as a tag or field key.
- [#7152](https://github.com/influxdata/influxdb/issues/7152): Decrement number of measurements only once when deleting the last series from a measurement.

## v1.0.0 [unreleased]

Expand Down
1 change: 0 additions & 1 deletion tsdb/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ func (d *DatabaseIndex) UnassignShard(k string, shardID uint64) {
if !ss.measurement.HasSeries() {
d.mu.Lock()
d.dropMeasurement(ss.measurement.Name)
atomic.AddInt64(&d.stats.NumMeasurements, -1)
d.mu.Unlock()
}

Expand Down

0 comments on commit a0004b6

Please sign in to comment.