MXS-2011 Change return value of blr_check_connect_retry

0 cannot be used to indicate failure as 0 will be the waiting
period if we switch to an alternative server.

Also fix some minor issues; failure to initialize all members
and inverted success-check.
This commit is contained in:
Johan Wikman
2018-09-03 10:10:03 +03:00
parent 9826458700
commit ae28f8189b
3 changed files with 6 additions and 4 deletions

View File

@ -378,6 +378,8 @@ public:
ChangeMasterConfig(const char* name)
: connection_name(name)
, port(-1)
, ssl_enabled(false)
, heartbeat_period(BLR_HEARTBEAT_DEFAULT_INTERVAL_VALUE)
, connect_retry(BLR_MASTER_CONNECT_RETRY_VALUE)
{