Fix bug in dcb; rearrange mysql_backend gw_backend_close to cope with receiving DCB that is no longer linked to a session.

This commit is contained in:
counterpoint
2015-06-09 12:03:58 +01:00
parent d0e92a15f8
commit 393e25e953
2 changed files with 23 additions and 19 deletions

View File

@ -1331,6 +1331,7 @@ dcb_close(DCB *dcb)
dcb->session = NULL;
spinlock_release(&dcb->server->persistlock);
atomic_add(&dcb->server->stats.n_persistent, 1);
atomic_add(&dcb->server->stats.n_current, -1);
}
else
{