Commit f081a541 authored by unknown's avatar unknown

sql_parse.cc:

  Add diagnostic printf to chack that number of connections for a user never drops below zero


sql/sql_parse.cc:
  Add diagnostic printf to chack that number of connections for a user never drops below zero
parent a837775a
...@@ -452,6 +452,9 @@ static void decrease_user_connections(USER_CONN *uc) ...@@ -452,6 +452,9 @@ static void decrease_user_connections(USER_CONN *uc)
(void) pthread_mutex_lock(&LOCK_user_conn); (void) pthread_mutex_lock(&LOCK_user_conn);
if (uc->connections == 0)
printf("Error: trying to decrease user %s connections below zero!\n",
uc->user);
if ((uc->connections && !--uc->connections) && !mqh_used) if ((uc->connections && !--uc->connections) && !mqh_used)
{ {
/* Last connection for user; Delete it */ /* Last connection for user; Delete it */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment