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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
44a2a213
Commit
44a2a213
authored
Oct 31, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed time -> query_time in slow query log.
Fixed Rows_examined in slow query log.
parent
0716bf4d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
Docs/manual.texi
Docs/manual.texi
+2
-0
sql/log.cc
sql/log.cc
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
Docs/manual.texi
View file @
44a2a213
...
...
@@ -46843,6 +46843,8 @@ not yet 100% confident in this code.
@appendixsubsec Changes in release 3.23.44
@itemize @bullet
@item
Fixed @code{Rows_examined} count in slow query log.
@item
Fixed bug when using a reference to a @code{AVG()} column in @code{HAVING}.
@item
Fixed that date functions that require correct dates, like
sql/log.cc
View file @
44a2a213
...
...
@@ -858,7 +858,7 @@ bool MYSQL_LOG::write(THD *thd,const char *query, uint query_length,
{
/* For slow query log */
if
(
my_b_printf
(
&
log_file
,
"#
T
ime: %lu Lock_time: %lu Rows_sent: %lu Rows_examined: %lu
\n
"
,
"#
Query_t
ime: %lu Lock_time: %lu Rows_sent: %lu Rows_examined: %lu
\n
"
,
(
ulong
)
(
current_time
-
query_start
),
(
ulong
)
(
thd
->
time_after_lock
-
query_start
),
(
ulong
)
thd
->
sent_row_count
,
...
...
sql/sql_select.cc
View file @
44a2a213
...
...
@@ -4121,7 +4121,6 @@ sub_select(JOIN *join,JOIN_TAB *join_tab,bool end_of_records)
bool
not_used_in_distinct
=
join_tab
->
not_used_in_distinct
;
ha_rows
found_records
=
join
->
found_records
;
READ_RECORD
*
info
=
&
join_tab
->
read_record
;
join
->
examined_rows
++
;
do
{
...
...
@@ -4130,6 +4129,7 @@ sub_select(JOIN *join,JOIN_TAB *join_tab,bool end_of_records)
my_error
(
ER_SERVER_SHUTDOWN
,
MYF
(
0
));
/* purecov: inspected */
return
-
2
;
/* purecov: inspected */
}
join
->
examined_rows
++
;
if
(
!
on_expr
||
on_expr
->
val_int
())
{
found
=
1
;
...
...
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