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

@ -227,6 +227,7 @@ typedef struct dcb_callback {
typedef struct dcb {
skygw_chk_t dcb_chk_top;
bool dcb_errhandle_called; /*< this can be called only once */
bool dcb_is_zombie; /**< Whether the DCB is in the zombie list */
dcb_role_t dcb_role;
SPINLOCK dcb_initlock;
DCBEVENTQ evq; /**< The event queue for this DCB */