Added debug print to place where changing DCB state fails.

This commit is contained in:
VilhoRaatikka
2014-02-10 23:21:03 +02:00
parent 4150b124a4
commit ab6469f2ae

View File

@ -1296,6 +1296,18 @@ static bool dcb_set_state_nomutex(
STRDCBSTATE(state), STRDCBSTATE(state),
STRDCBSTATE(dcb->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; return succp;
} }