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
739e6c99
Commit
739e6c99
authored
Mar 22, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MWL#90: Address review feedback part #8
parent
39fe368d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
sql/sql_join_cache.cc
sql/sql_join_cache.cc
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+6
-5
No files found.
sql/sql_join_cache.cc
View file @
739e6c99
...
...
@@ -204,7 +204,7 @@ void JOIN_CACHE::calc_record_fields()
tab
=
tab
->
bush_children
->
start
;
}
}
DBUG_ASSERT
(
!
start_
tab
->
bush_children
);
DBUG_ASSERT
(
!
tab
->
bush_children
);
start_tab
=
tab
;
fields
=
0
;
...
...
sql/sql_select.cc
View file @
739e6c99
...
...
@@ -8507,7 +8507,6 @@ make_join_readinfo(JOIN *join, ulonglong options, uint no_jbuf_after)
tab
->
partial_join_cardinality
=
1
;
}
//for (i=join->const_tables ; i < join->tables ; i++)
for
(
tab
=
first_linear_tab
(
join
,
TRUE
),
i
=
join
->
const_tables
;
tab
;
tab
=
next_linear_tab
(
join
,
tab
,
TRUE
))
...
...
@@ -9025,15 +9024,17 @@ void JOIN::cleanup(bool full)
if
(
full
)
{
for
(
tab
=
top_jtrange_tables
?
join_tab
:
NULL
;
tab
;
tab
=
next_linear_tab
(
this
,
tab
,
TRUE
))
for
(
tab
=
first_linear_tab
(
this
,
TRUE
);
tab
;
tab
=
next_linear_tab
(
this
,
tab
,
TRUE
))
{
tab
->
cleanup
();
//psergey4: how is the above supposed to work when
//top_jtrange_tables==FALSE? It will crash right away!
}
table
=
0
;
}
else
{
for
(
tab
=
top_jtrange_tables
?
join_tab
:
NULL
;
tab
;
tab
=
next_linear_tab
(
this
,
tab
,
TRUE
))
for
(
tab
=
first_linear_tab
(
this
,
TRUE
);
tab
;
tab
=
next_linear_tab
(
this
,
tab
,
TRUE
))
{
if
(
tab
->
table
)
tab
->
table
->
file
->
ha_index_or_rnd_end
();
...
...
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