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 measurementpull/7155/head
commit
a0004b6857
|
@ -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]
|
||||
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue