Skip to content

Commit

Permalink
Updated changelog and style [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 3, 2021
1 parent 9eaa22c commit f7184ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.7.5 (unreleased)

- No longer show walsender in long running queries

## 2.7.4 (2021-02-01)

- Fixed error on redirect with Ruby 3
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/pg_hero/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def index
@inactive_replication_slots = @database.replication_slots.select { |r| !r[:active] }
end

@walsender_queries, @long_running_queries_array = @database.long_running_queries.partition { |q| q[:backend_type]=="walsender"}
@autovacuum_queries, @long_running_queries = @long_running_queries_array.partition { |q| q[:query].starts_with?("autovacuum:") }
@walsender_queries, @long_running_queries = @database.long_running_queries.partition { |q| q[:backend_type] == "walsender" }
@autovacuum_queries, @long_running_queries = @long_running_queries.partition { |q| q[:query].starts_with?("autovacuum:") }

connection_states = @database.connection_states
@total_connections = connection_states.values.sum
Expand Down

0 comments on commit f7184ec

Please sign in to comment.