mysql_health 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mysql_health/health.rb +7 -3
- data/lib/mysql_health/version.rb +1 -1
- data/redhat/rubygem-mysql_health.spec +1 -1
- metadata +2 -2
data/lib/mysql_health/health.rb
CHANGED
@@ -145,9 +145,13 @@ module MysqlHealth
|
|
145
145
|
|
146
146
|
show_slave_status = []
|
147
147
|
status = {}
|
148
|
-
dbh.
|
149
|
-
|
150
|
-
|
148
|
+
dbh.execute('SHOW SLAVE STATUS') do |sth|
|
149
|
+
sth.fetch_hash() do |row|
|
150
|
+
row.each_pair do |k,v|
|
151
|
+
status[k.downcase.to_sym] = v
|
152
|
+
show_slave_status << "#{k}: #{v}"
|
153
|
+
end
|
154
|
+
end
|
151
155
|
end
|
152
156
|
|
153
157
|
if status.length > 0
|
data/lib/mysql_health/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
|
2
2
|
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
3
3
|
%define gemname mysql_health
|
4
|
-
%define gemversion 0.5.
|
4
|
+
%define gemversion 0.5.3
|
5
5
|
%define geminstdir %{gemdir}/gems/%{gemname}-%{gemversion}
|
6
6
|
%define gemfile %{gemname}-%{gemversion}.gem
|
7
7
|
%define gemsummary %(ruby -rrubygems -e 'puts YAML.load(`gem specification %{gemfile}`).summary')
|