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:
@ -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 ||
|
ss_dassert(!root_master ||
|
||||||
((root_master->server->status & (SERVER_SLAVE | SERVER_MASTER))
|
((root_master->server->status & (SERVER_SLAVE | SERVER_MASTER))
|
||||||
!= (SERVER_SLAVE | SERVER_MASTER)));
|
!= (SERVER_SLAVE | SERVER_MASTER)));
|
||||||
|
Reference in New Issue
Block a user