lib/flydata/compatibility_check.rb in flydata-0.5.8 vs lib/flydata/compatibility_check.rb in flydata-0.5.9
- old
+ new
@@ -117,12 +117,18 @@
log_warn_stderr(e.to_s)
end
FlydataCore::Mysql::RequiredBinlogParameterChecker.new(@db_opts).do_check
end
+ def check_rds_master_status
+ if is_rds?
+ FlydataCore::Mysql::RdsMasterStatusChecker.new(@db_opts).do_check
+ end
+ end
+
def check_mysql_binlog_retention
- if is_rds?(@db_opts[:host])
+ if is_rds?
run_rds_retention_check
else
run_mysql_retention_check
end
end
@@ -169,10 +175,10 @@
else
raise e
end
end
- def is_rds?(hostname)
+ def is_rds?(hostname = @db_opts[:host])
hostname.match(/rds.amazonaws.com$/) != nil
end
end
end