Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1074b9b8
Commit
1074b9b8
authored
Apr 11, 2018
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that max_local_memory_used is initialized
parent
3bae6a2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
sql/sql_class.cc
sql/sql_class.cc
+2
-0
No files found.
sql/sql_class.cc
View file @
1074b9b8
...
...
@@ -770,6 +770,7 @@ THD::THD(my_thread_id id, bool is_wsrep_applier, bool skip_global_sys_var_lock)
THD
*
old_THR_THD
=
current_thd
;
set_current_thd
(
this
);
status_var
.
local_memory_used
=
sizeof
(
THD
);
status_var
.
max_local_memory_used
=
status_var
.
local_memory_used
;
status_var
.
global_memory_used
=
0
;
variables
.
pseudo_thread_id
=
thread_id
;
variables
.
max_mem_used
=
global_system_variables
.
max_mem_used
;
...
...
@@ -1317,6 +1318,7 @@ void THD::init(bool skip_lock)
reset_current_stmt_binlog_format_row
();
reset_binlog_local_stmt_filter
();
set_status_var_init
();
status_var
.
max_local_memory_used
=
status_var
.
local_memory_used
;
bzero
((
char
*
)
&
org_status_var
,
sizeof
(
org_status_var
));
status_in_global
=
0
;
start_bytes_received
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment