Skip to content

Commit

Permalink
RLock server for SHOW RETENTION POLICIES
Browse files Browse the repository at this point in the history
  • Loading branch information
otoolep committed Apr 15, 2015
1 parent ba90815 commit 37c42c9
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 37c42c9

Please sign in to comment.