Fix bugs
This commit is contained in:
@ -138,7 +138,7 @@ SERVER *ptr;
|
|||||||
* @param user The name of the user needing the connection
|
* @param user The name of the user needing the connection
|
||||||
*/
|
*/
|
||||||
DCB *
|
DCB *
|
||||||
server_get_persistent(SERVER *server, char *user, char *protocol)
|
server_get_persistent(SERVER *server, char *user, const char *protocol)
|
||||||
{
|
{
|
||||||
DCB *dcb, *previous;
|
DCB *dcb, *previous;
|
||||||
int rc;
|
int rc;
|
||||||
@ -169,6 +169,7 @@ server_get_persistent(SERVER *server, char *user, char *protocol)
|
|||||||
dcb->user = NULL;
|
dcb->user = NULL;
|
||||||
spinlock_release(&server->persistlock);
|
spinlock_release(&server->persistlock);
|
||||||
atomic_add(&server->stats.n_persistent, -1);
|
atomic_add(&server->stats.n_persistent, -1);
|
||||||
|
atomic_add(&server->stats.n_current, 1);
|
||||||
return dcb;
|
return dcb;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -192,6 +192,6 @@ extern void serverAddParameter(SERVER *, char *, char *);
|
|||||||
extern char *serverGetParameter(SERVER *, char *);
|
extern char *serverGetParameter(SERVER *, char *);
|
||||||
extern void server_update(SERVER *, char *, char *, char *);
|
extern void server_update(SERVER *, char *, char *, char *);
|
||||||
extern void server_set_unique_name(SERVER *, char *);
|
extern void server_set_unique_name(SERVER *, char *);
|
||||||
extern DCB *server_get_persistent(SERVER *, char *, char *);
|
extern DCB *server_get_persistent(SERVER *, char *, const char *);
|
||||||
extern RESULTSET *serverGetList();
|
extern RESULTSET *serverGetList();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user