summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/sql_parse.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index d9837291f73..99f22993393 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -452,6 +452,9 @@ static void decrease_user_connections(USER_CONN *uc)
(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)
{
/* Last connection for user; Delete it */