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
|
-
|
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['
|
241
|
+
Clock.new(status['Relay_Master_Log_File'], status['Exec_Master_Log_Pos'])
|
241
242
|
end
|
242
243
|
end
|
243
244
|
|