check_slony 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/check_slony +1 -3
- data/lib/check_slony.rb +1 -1
- metadata +3 -3
data/bin/check_slony
CHANGED
@@ -49,14 +49,12 @@ def countcheck_all_tables(options, tty)
|
|
49
49
|
sl_table << r["tab_relname"]
|
50
50
|
end
|
51
51
|
#
|
52
|
-
query = 'SELECT pa_server, pa_conninfo from "_' + @cluster + '".sl_path order by pa_server'
|
52
|
+
query = 'SELECT distinct pa_server, pa_conninfo from "_' + @cluster + '".sl_path order by pa_server'
|
53
53
|
res = con.exec(query)
|
54
54
|
@pg_hash = {}
|
55
55
|
res.each do |r|
|
56
56
|
info_hash = {}
|
57
57
|
r["pa_conninfo"].split(" ").each do |info|
|
58
|
-
# puts "******"
|
59
|
-
# puts info.split("=")[0] + '=' + info.split("=")[1]
|
60
58
|
info_hash[info.split("=")[0]] = info.split("=")[1]
|
61
59
|
end
|
62
60
|
@pg_hash[r["pa_server"]] = info_hash
|
data/lib/check_slony.rb
CHANGED
metadata
CHANGED