1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-33990: SHOW STATUS counts ER_CON_COUNT_ERROR as Connection_errors_internal

Bring info about cause of closing connection in the place where we increment
statistics to do it correctly.
This commit is contained in:
Oleksandr Byelkin
2024-09-19 10:55:25 +02:00
parent bbc62b1b9e
commit c9f54e20d4
5 changed files with 79 additions and 8 deletions

View File

@ -61,7 +61,7 @@ public:
count--;
DBUG_ASSERT(vio_type == VIO_CLOSED);
}
void close_and_delete();
void close_and_delete(uint err);
void close_with_error(uint sql_errno,
const char *message, uint close_error);
THD *create_thd(THD *thd);