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
e1502271
Commit
e1502271
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
52246038
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 @
e1502271
...
@@ -204,7 +204,7 @@ void JOIN_CACHE::calc_record_fields()
...
@@ -204,7 +204,7 @@ void JOIN_CACHE::calc_record_fields()
tab
=
tab
->
bush_children
->
start
;
tab
=
tab
->
bush_children
->
start
;
}
}
}
}
DBUG_ASSERT
(
!
start_
tab
->
bush_children
);
DBUG_ASSERT
(
!
tab
->
bush_children
);
start_tab
=
tab
;
start_tab
=
tab
;
fields
=
0
;
fields
=
0
;
...
...
sql/sql_select.cc
View file @
e1502271
...
@@ -8507,7 +8507,6 @@ make_join_readinfo(JOIN *join, ulonglong options, uint no_jbuf_after)
...
@@ -8507,7 +8507,6 @@ make_join_readinfo(JOIN *join, ulonglong options, uint no_jbuf_after)
tab
->
partial_join_cardinality
=
1
;
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
;
for
(
tab
=
first_linear_tab
(
join
,
TRUE
),
i
=
join
->
const_tables
;
tab
;
tab
;
tab
=
next_linear_tab
(
join
,
tab
,
TRUE
))
tab
=
next_linear_tab
(
join
,
tab
,
TRUE
))
...
@@ -9025,15 +9024,17 @@ void JOIN::cleanup(bool full)
...
@@ -9025,15 +9024,17 @@ void JOIN::cleanup(bool full)
if
(
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
();
tab
->
cleanup
();
//psergey4: how is the above supposed to work when
}
//top_jtrange_tables==FALSE? It will crash right away!
table
=
0
;
table
=
0
;
}
}
else
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
)
if
(
tab
->
table
)
tab
->
table
->
file
->
ha_index_or_rnd_end
();
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