mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-8931: (server part of) session state tracking
System variables tracking
This commit is contained in:
@ -1766,6 +1766,10 @@ THD::~THD()
|
||||
lf_hash_put_pins(xid_hash_pins);
|
||||
/* Ensure everything is freed */
|
||||
status_var.local_memory_used-= sizeof(THD);
|
||||
|
||||
/* trick to make happy memory accounting system */
|
||||
session_tracker.deinit();
|
||||
|
||||
if (status_var.local_memory_used != 0)
|
||||
{
|
||||
DBUG_PRINT("error", ("memory_used: %lld", status_var.local_memory_used));
|
||||
|
Reference in New Issue
Block a user