From ee3d24121e007c6262b1b85ca7fa13005255900e Mon Sep 17 00:00:00 2001 From: Rahim Kanji <87704158+rahim-kanji@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:20:06 +0500 Subject: [PATCH] Update MySQL_PreparedStatement.cpp * Fixed typo * Added comment --- lib/MySQL_PreparedStatement.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/MySQL_PreparedStatement.cpp b/lib/MySQL_PreparedStatement.cpp index 7435a69f9f..e9263a33d7 100644 --- a/lib/MySQL_PreparedStatement.cpp +++ b/lib/MySQL_PreparedStatement.cpp @@ -936,16 +936,16 @@ void MySQL_STMT_Manager_v14::get_memory_usage(uint64_t& prep_stmt_metadata_mem_u prep_stmt_metadata_mem_usage += stmt_global_info->total_mem_usage; prep_stmt_metadata_mem_usage += stmt_global_info->ref_count_server * ((stmt_global_info->num_params * sizeof(MYSQL_BIND)) + - (stmt_global_info->num_columns * sizeof(MYSQL_FIELD))) + 16; + (stmt_global_info->num_columns * sizeof(MYSQL_FIELD))) + 16; // ~16 bytes of memory utilized by global_stmt_id and stmt_id mappings prep_stmt_metadata_mem_usage += stmt_global_info->ref_count_client * ((stmt_global_info->num_params * sizeof(MYSQL_BIND)) + - (stmt_global_info->num_columns * sizeof(MYSQL_FIELD))) + 16; + (stmt_global_info->num_columns * sizeof(MYSQL_FIELD))) + 16; // ~16 bytes of memory utilized by global_stmt_id and stmt_id mappings // backend prep_stmt_backend_mem_usage += stmt_global_info->ref_count_server * (sizeof(MYSQL_STMT) + 56 + //sizeof(MADB_STMT_EXTENSION) (stmt_global_info->num_params * sizeof(MYSQL_BIND)) + - (stmt_global_info->num_columns * sizeof(MYSQL_BIND))); + (stmt_global_info->num_columns * sizeof(MYSQL_FIELD))); } unlock(); }