Sha256: 26e4f80753a0f37a5a5600c44f96ad3136a79305887c5f3507157909d3b91148
Contents?: true
Size: 530 Bytes
Versions: 2
Compression:
Stored size: 530 Bytes
Contents
module MysqlReplicationHelper class Agent class Master < Agent def poll! # Nothing yet end def master_status row = query("SHOW MASTER STATUS").fetch_row return unless (row) { :master_log_file => row[0], :master_log_position => row[1].to_i } end def user_name @options[:master_user] or super end def socket_name @options[:master_socket] or super end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
theworkinggroup-mysql-replication-helper-0.2.0 | lib/mysql_replication_helper/agent/master.rb |
mysql-replication-helper-0.2.1 | lib/mysql_replication_helper/agent/master.rb |