MXS-1654 Prevent crash in debug mode if no master is found

This commit is contained in:
Johan Wikman
2018-02-07 13:09:13 +02:00
parent fa8f6a5da3
commit 6c42221c9c

View File

@ -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