Merge pull request #7153 from influxdata/js-7152-delete-series-causes-incorrect-measurement-statistic

Decrement number of measurements only once when deleting the last series from a measurement
pull/7155/head
Jonathan A. Sternberg 2016-08-15 14:21:35 -05:00 committed by GitHub
commit a0004b6857
2 changed files with 1 additions and 1 deletions

View File

@ -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]

View File

@ -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()
}