Skip to content

Commit

Permalink
Merge pull request #2287 from influxdb/default_rp_race
Browse files Browse the repository at this point in the history
RLock server for SHOW RETENTION POLICIES
  • Loading branch information
otoolep committed Apr 15, 2015
2 parents ba90815 + 37c42c9 commit dc5a1af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Bugfixes
- [#2282](https://github.com/influxdb/influxdb/pull/2282): Use "value" as field name for OpenTSDB input.
- [#2283](https://github.com/influxdb/influxdb/pull/2283): Fix bug when restarting an entire existing cluster.
- [#2287](https://github.com/influxdb/influxdb/pull/2287): Fix data race during SHOW RETENTION POLICIES.

## Features
- [#2276](https://github.com/influxdb/influxdb/pull/2276): Broker topic truncation.
Expand Down
3 changes: 3 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3018,6 +3018,9 @@ func (s *Server) executeDropRetentionPolicyStatement(q *influxql.DropRetentionPo
}

func (s *Server) executeShowRetentionPoliciesStatement(q *influxql.ShowRetentionPoliciesStatement, user *User) *Result {
s.mu.RLock()
defer s.mu.RUnlock()

a, err := s.RetentionPolicies(q.Database)
if err != nil {
return &Result{Err: err}
Expand Down

0 comments on commit dc5a1af

Please sign in to comment.