This commit is contained in:
counterpoint
2015-05-26 11:32:13 +01:00
parent 9d1b48da57
commit 1e700ea85b
2 changed files with 3 additions and 2 deletions

View File

@ -138,7 +138,7 @@ SERVER *ptr;
* @param user The name of the user needing the connection
*/
DCB *
server_get_persistent(SERVER *server, char *user, char *protocol)
server_get_persistent(SERVER *server, char *user, const char *protocol)
{
DCB *dcb, *previous;
int rc;
@ -169,6 +169,7 @@ server_get_persistent(SERVER *server, char *user, char *protocol)
dcb->user = NULL;
spinlock_release(&server->persistlock);
atomic_add(&server->stats.n_persistent, -1);
atomic_add(&server->stats.n_current, 1);
return dcb;
}
}