Move removal of closing DCB from poll list to the kill zombies processing, rather than immediately on close; modify persistent connections to obtain candidates for the pool from the kill zombies processing to be sure that they really are finished all previous processing.

This commit is contained in:
counterpoint
2015-08-24 16:19:25 +01:00
parent 37ac158791
commit 65c42e2d80
3 changed files with 41 additions and 40 deletions

View File

@ -353,7 +353,6 @@ session_free(SESSION *session)
if (atomic_add(&session->refcount, -1) - 1)
{
/* Must be one or more references left */
ss_dassert(nlink > 0);
return false;
}
session->state = SESSION_STATE_TO_BE_FREED;