master_slave_adapter_tcurdt 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -165,7 +165,8 @@ module ActiveRecord
165
165
  if Thread.current[:master_slave_select_connection]
166
166
  Thread.current[:master_slave_select_connection][0] == :master
167
167
  else
168
- nil
168
+ # there is no wrapper so selects go to slave by default
169
+ false
169
170
  end
170
171
  end
171
172
 
@@ -237,7 +238,7 @@ module ActiveRecord
237
238
 
238
239
  def slave_clock
239
240
  if status = connect_to_slave.select_one("SHOW SLAVE STATUS")
240
- Clock.new(status['Master_Log_File'], status['Exec_Master_Log_Pos'])
241
+ Clock.new(status['Relay_Master_Log_File'], status['Exec_Master_Log_Pos'])
241
242
  end
242
243
  end
243
244
 
@@ -1,3 +1,3 @@
1
1
  module MasterSlaveAdapter
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mauricio Linhares