Added debug print to place where changing DCB state fails.
This commit is contained in:
parent
4150b124a4
commit
ab6469f2ae
@ -1203,7 +1203,7 @@ static bool dcb_set_state_nomutex(
|
||||
dcb->state = new_state;
|
||||
succp = true;
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
ss_dassert(old_state != NULL);
|
||||
break;
|
||||
}
|
||||
@ -1296,6 +1296,18 @@ static bool dcb_set_state_nomutex(
|
||||
STRDCBSTATE(state),
|
||||
STRDCBSTATE(dcb->state))));
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGIF(LD, (skygw_log_write(
|
||||
LOGFILE_DEBUG,
|
||||
"%lu [dcb_set_state_nomutex] Failed "
|
||||
"to change state of DCB %p. "
|
||||
"Old state %s > new state %s.",
|
||||
pthread_self(),
|
||||
dcb,
|
||||
STRDCBSTATE(*old_state),
|
||||
STRDCBSTATE(new_state))));
|
||||
}
|
||||
return succp;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user