Fix debug assertion when no master is present
If no master is present, the debug assertion would dereference a NULL pointer.
This commit is contained in:
parent
2a987716a8
commit
ed28d986e9
@ -2372,7 +2372,7 @@ monitorMain(void *arg)
|
||||
}
|
||||
}
|
||||
|
||||
ss_dassert(handle->master == root_master);
|
||||
ss_dassert(root_master == NULL || handle->master == root_master);
|
||||
ss_dassert(!root_master ||
|
||||
((root_master->server->status & (SERVER_SLAVE | SERVER_MASTER))
|
||||
!= (SERVER_SLAVE | SERVER_MASTER)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user