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
d30c3205
Commit
d30c3205
authored
Feb 16, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes part 4
parent
b63eabc1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
sql/sql_join_cache.cc
sql/sql_join_cache.cc
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+13
-2
No files found.
sql/sql_join_cache.cc
View file @
d30c3205
...
...
@@ -923,7 +923,7 @@ int JOIN_CACHE::alloc_buffer()
//psergey-merge: for (tab= join->join_tab+join->const_tables; tab <= join_tab; tab++)
// for (tab= cache->join_tab-cache->tables; tab < cache->join_tab ; tab++)
// (fixed)
for
(
tab
=
join
->
join_tab
+
join
->
const_tables
;
tab
!=
join_tab
;
for
(
tab
=
/*join->join_tab + join->const_tables*/
start_tab
;
tab
!=
join_tab
;
tab
=
next_linear_tab
(
join
,
tab
,
FALSE
))
{
cache
=
tab
->
cache
;
...
...
sql/sql_select.cc
View file @
d30c3205
...
...
@@ -8429,10 +8429,12 @@ void check_join_cache_usage_for_tables(JOIN *join, ulonglong options,
if (!(tab >= first_sjm_table && tab < last_sjm_table))
tab->first_sjm_sibling= NULL;
#endif
JOIN_TAB
*
prev_tab
;
restart:
tab
->
icp_other_tables_ok
=
TRUE
;
tab
->
idx_cond_fact_out
=
TRUE
;
JOIN_TAB
*
prev_tab
=
tab
-
1
;
prev_tab
=
tab
-
1
;
if
((
tab
->
bush_root_tab
&&
tab
->
bush_root_tab
->
bush_children
->
start
==
tab
))
prev_tab
=
NULL
;
...
...
@@ -8450,11 +8452,20 @@ void check_join_cache_usage_for_tables(JOIN *join, ulonglong options,
// tab-1);
prev_tab
);
tab
->
use_join_cache
=
test
(
tab
->
used_join_cache_level
);
DBUG_ASSERT
(
!
join
->
return_tab
);
/*
psergey-merge: todo: raise the question that this is really stupid that
we can first allocate a join buffer, then decide not to use it and free
it.
*/
/*
if (join->return_tab)
i= join->return_tab-join->join_tab-1; // always >= 0
*/
if
(
join
->
return_tab
)
{
tab
=
join
->
return_tab
;
goto
restart
;
}
break
;
default:
tab
->
used_join_cache_level
=
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