Add CHK_SERVER capability and test in dcb_persistent_clean_count

This commit is contained in:
counterpoint
2015-06-03 15:39:06 +01:00
parent ef6b6566e6
commit fe2f8e70d1
3 changed files with 15 additions and 1 deletions

View File

@ -2316,8 +2316,9 @@ dcb_persistent_clean_count(DCB *dcb)
DCB *previousdcb = NULL;
DCB *persistentdcb = server->persistent;
CHK_SERVER(server);
while (persistentdcb) {
CHK_DCB(persistentdcb);
CHK_DCB(persistentdcb);
if (count >= server->persistpoolmax || (persistentdcb->last_read + server->persistmaxtime) < time(NULL))
{
if (previousdcb) {