From 36442e4cd70e08558705ee7ed28f1e9058a60ee4 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Tue, 25 Nov 2025 17:32:05 +0000 Subject: [PATCH] docs: Add comprehensive Doxygen documentation for session variable tracking Add detailed architectural documentation for PR 5166 session variable tracking: - High-level architecture overview in session_track_variables struct explaining the 3-phase workflow - Detailed documentation for handler_rc0_Process_Variables explaining the core processing workflow - Technical implementation details for MySQL_Connection::get_variables protocol interface - Configuration logic documentation for handler_again___verify_backend_session_track_variables - Added inline comments explaining why session tracking is needed and performance considerations This documentation provides a complete understanding of how MySQL session variable tracking integrates with ProxySQL's existing state machine and leverages MySQL's native session tracking capabilities. --- include/MySQL_Session.h | 77 ++++++++++++++++++++++++++++++++++++++ include/MySQL_Thread.h | 44 +++++++++++++++++++++- include/mysql_connection.h | 35 +++++++++++++++-- 3 files changed, 151 insertions(+), 5 deletions(-) diff --git a/include/MySQL_Session.h b/include/MySQL_Session.h index f35e18504..271588834 100644 --- a/include/MySQL_Session.h +++ b/include/MySQL_Session.h @@ -225,6 +225,35 @@ class MySQL_Session: public Base_Session&); void reduce_auto_increment_delay_token() { if (auto_increment_delay_token) auto_increment_delay_token--; };