diff options
author | heikki@hundin.mysql.fi <> | 2003-10-25 19:12:29 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2003-10-25 19:12:29 +0300 |
commit | 5584d422eee61e1a956ebf512d78d9e96f6ce5f7 (patch) | |
tree | f6c35f89d6de3ab67a0ccc40d0f37f59975e6f52 /sql/sql_parse.cc | |
parent | f293edd19b7f64e91cb889addd4298e450d4fb79 (diff) | |
download | mariadb-git-5584d422eee61e1a956ebf512d78d9e96f6ce5f7.tar.gz |
sql_parse.cc:
Add diagnostic printf to chack that number of connections for a user never drops below zero
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 3 |
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 */ |