Clear persistent pool DCBs when server freed.

This commit is contained in:
counterpoint
2015-06-09 08:26:14 +01:00
parent e395ab1442
commit 99e9987f9b
3 changed files with 8 additions and 6 deletions

View File

@ -336,7 +336,7 @@ int dcb_remove_callback(DCB *, DCB_REASON, int (*)(struct dcb *, DCB_REASON, vo
void *);
int dcb_isvalid(DCB *); /* Check the DCB is in the linked list */
int dcb_count_by_usage(DCB_USAGE); /* Return counts of DCBs */
int dcb_persistent_clean_count(DCB *); /* Clean persistent and return count */
int dcb_persistent_clean_count(DCB *, bool); /* Clean persistent and return count */
bool dcb_set_state(DCB* dcb, dcb_state_t new_state, dcb_state_t* old_state);
void dcb_call_foreach (struct server* server, DCB_REASON reason);