Remove too aggressive assert

This commit is contained in:
Johan Wikman 2016-10-19 11:00:26 +03:00
parent 48b1583830
commit 348143eb6c

View File

@ -621,7 +621,10 @@ static void cache_session_data_free(CACHE_SESSION_DATA* data)
{
if (data)
{
ss_dassert(!data->use_db);
// In normal circumstances, only data->default_db may be non-NULL at
// this point. However, if the authentication with the backend fails
// and the session is closed, data->use_db may be non-NULL.
MXS_FREE(data->use_db);
MXS_FREE(data->default_db);
MXS_FREE(data);
}