1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-36405 Session tracking does not report changes from COM_CHANGE_USER

report all sysvar tracker changes, as for the new login.
also report db and other session state changes.
This commit is contained in:
Sergei Golubchik
2025-04-25 17:45:59 +02:00
parent 07de0ac69e
commit 26ea37be5d
9 changed files with 63 additions and 5 deletions

View File

@@ -12390,6 +12390,10 @@ static int set_privs_on_login(THD *thd, const ACL_USER *acl_user)
thd->variables.max_statement_time=
(ulonglong) (thd->variables.max_statement_time_double * 1e6 + 0.1);
}
thd->session_tracker.sysvars.mark_all_as_changed(thd);
thd->session_tracker.current_schema.mark_as_changed(thd);
thd->session_tracker.state_change.mark_as_changed(thd);
return 0;
}