Skip to content

Commit

Permalink
Decrement number of measurements only once when deleting the last ser…
Browse files Browse the repository at this point in the history
…ies from a measurement
  • Loading branch information
jsternberg committed Aug 15, 2016
1 parent 87f7c66 commit 6b5b24a
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 @@ -11,6 +11,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 6b5b24a

Please sign in to comment.