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
8d836dd3
Commit
8d836dd3
authored
Oct 31, 2007
by
cmiller@zippy.cornsilk.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push history-limiting code until after the code that adds new
history entries. Lazy deletion isn't smart or useful here.
parent
3cf16df0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/sql_profile.cc
sql/sql_profile.cc
+3
-3
No files found.
sql/sql_profile.cc
View file @
8d836dd3
...
...
@@ -338,9 +338,6 @@ void PROFILING::store()
DBUG_VOID_RETURN
;
}
while
(
history
.
elements
>
thd
->
variables
.
profiling_history_size
)
delete
history
.
pop
();
if
(
likely
(((
thd
)
->
options
&
OPTION_PROFILING
)
==
0
))
DBUG_VOID_RETURN
;
...
...
@@ -370,6 +367,9 @@ void PROFILING::store()
if
(
enabled
)
current
=
new
QUERY_PROFILE
(
this
,
thd
->
query
,
thd
->
query_length
);
while
(
history
.
elements
>
thd
->
variables
.
profiling_history_size
)
delete
history
.
pop
();
DBUG_VOID_RETURN
;
}
...
...
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