Fixed bugs by moving setting of thread bit mask from polling to DCB closing, fixed other mistakes.

This commit is contained in:
counterpoint
2015-08-25 11:46:25 +01:00
parent ea09918312
commit 8425deab18
2 changed files with 6 additions and 6 deletions

View File

@ -368,10 +368,6 @@ poll_remove_dcb(DCB *dcb)
dcb,
STRDCBSTATE(dcb->state))));
}
/*< Set bit for each maxscale thread. This should be done before
* the state is changed, so as to protect the DCB from premature
* destruction. */
bitmask_copy(&dcb->memdata.bitmask, poll_bitmask());
/*<
* Set state to NOPOLLING and remove dcb from poll set.
*/