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.
Files changed (3) hide show
  1. data/bin/check_slony +1 -3
  2. data/lib/check_slony.rb +1 -1
  3. 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
@@ -1,4 +1,4 @@
1
1
  class CheckSlony
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_slony
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - kakikubo