MXS-1654 Prevent crash in debug mode if no master is found
This commit is contained in:
@ -2373,8 +2373,9 @@ monitorMain(void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ss_dassert(handle->master == root_master);
|
ss_dassert(handle->master == root_master);
|
||||||
ss_dassert((root_master->server->status & (SERVER_SLAVE | SERVER_MASTER))
|
ss_dassert(!root_master ||
|
||||||
!= (SERVER_SLAVE | SERVER_MASTER));
|
((root_master->server->status & (SERVER_SLAVE | SERVER_MASTER))
|
||||||
|
!= (SERVER_SLAVE | SERVER_MASTER)));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* After updating the status of all servers, check if monitor events
|
* After updating the status of all servers, check if monitor events
|
||||||
|
Reference in New Issue
Block a user