Skip to content

Commit

Permalink
Updated close.
Browse files Browse the repository at this point in the history
  • Loading branch information
jBRNDnl committed Jan 27, 2020
1 parent 0b72ae1 commit d9d048d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/check-percona-cluster-size.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Based on the MySQL Health Plugin by Panagiotis Papadomitsos
#
# Depends on mysql:
# gem install ruby-mysql
# gem install mysql2
#
# Released under the same terms as Sensu (the MIT license); see LICENSE
# for details.
Expand Down
4 changes: 2 additions & 2 deletions bin/check-wsrep-ready.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
# DEPENDENCIES:
# gem: sensu-plugin
# gem: ruby-mysql
# gem: mysql2
#
# USAGE:
#
Expand Down Expand Up @@ -95,7 +95,7 @@ def run
rescue Mysql2::Error => e
critical "Percona MySQL check failed: #{e.error}"
ensure
mysql&.close
db&.close
# db.close if db
end
end

0 comments on commit d9d048d

Please sign in to comment.