check_slony 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/check_slony +4 -2
- data/lib/check_slony.rb +1 -1
- metadata +3 -3
data/bin/check_slony
CHANGED
@@ -81,7 +81,7 @@ def countcheck_all_tables(options, tty)
|
|
81
81
|
if @master[t] != info[t][0]
|
82
82
|
info[t][1] = true
|
83
83
|
result_hash["status"] = "NG"
|
84
|
-
error_str += "node #{node} #{t}"
|
84
|
+
error_str += " node #{node} #{t} "
|
85
85
|
end
|
86
86
|
end
|
87
87
|
con.close
|
@@ -103,10 +103,12 @@ def countcheck_all_tables(options, tty)
|
|
103
103
|
puts '-' * ((@pg_hash.count * 15) + 60)
|
104
104
|
sl_table.each do |t|
|
105
105
|
temp_array = [t, @master[t]]
|
106
|
+
state = "OK"
|
106
107
|
@pg_hash.each{ |k,v|
|
107
108
|
temp_array << v[t][0]
|
108
|
-
|
109
|
+
state = "NG" unless v[t][1]
|
109
110
|
}
|
111
|
+
temp_array << state
|
110
112
|
puts fmt % temp_array
|
111
113
|
end
|
112
114
|
end
|
data/lib/check_slony.rb
CHANGED
metadata
CHANGED