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
e7aa18fb
Commit
e7aa18fb
authored
Feb 19, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup (1)
parent
2c7c230a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
25 deletions
+3
-25
sql/sql_base.cc
sql/sql_base.cc
+2
-2
sql/sql_join_cache.cc
sql/sql_join_cache.cc
+1
-1
sql/sql_join_cache.h
sql/sql_join_cache.h
+0
-5
sql/sql_select.cc
sql/sql_select.cc
+0
-14
sql/sql_select.h
sql/sql_select.h
+0
-3
No files found.
sql/sql_base.cc
View file @
e7aa18fb
...
...
@@ -7787,8 +7787,8 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
DBUG_RETURN
(
1
);
}
DBUG_ASSERT
(
item
==
table_list
->
jtbm_subselect
);
table_list
->
jtbm_subselect
->
setup_engine
(
FALSE
);
//psergey-merge: ^ todo: error checking!
if
(
table_list
->
jtbm_subselect
->
setup_engine
(
FALSE
))
DBUG_RETURN
(
1
);
}
}
...
...
sql/sql_join_cache.cc
View file @
e7aa18fb
...
...
@@ -2219,7 +2219,7 @@ enum_nested_loop_state JOIN_CACHE::join_matching_records(bool skip_last)
}
/* Prepare to retrieve all records of the joined table */
if
((
error
=
join_tab_scan
->
open
()))
//psergey-merge: TODO: look what it does inside? status-reset should use next_linear_tab
if
((
error
=
join_tab_scan
->
open
()))
goto
finish
;
/* psergey-note: if this returns error, we will assert in net_send_statement() */
if
((
rc
=
join_tab_execution_startup
(
join_tab
))
<
0
)
...
...
sql/sql_join_cache.h
View file @
e7aa18fb
...
...
@@ -121,11 +121,6 @@ class JOIN_CACHE :public Sql_alloc
*/
JOIN
*
join
;
/*
Cardinality of the range of join tables whose fields can be put into the
cache. A table from the range not necessarily contributes to the cache.
*/
// psergey-merge: gone: uint tables;
/*
JOIN_TAB of the first table that can have it's fields in the join cache.
That is, tables in the [start_tab, tab) range can have their fields in the
...
...
sql/sql_select.cc
View file @
e7aa18fb
...
...
@@ -14728,20 +14728,6 @@ join_read_always_key(JOIN_TAB *tab)
}
}
// psergey-merge:todo: should the below be removed: ?
// if not, what's the BKA equivalent for it?
// (example: this is needed for outer joins where we can't do early NULL
// filtering because we'll still need to produce NULL-complemented records)
/* Perform "Late NULLs Filtering" (see internals manual for explanations) */
#if 0
Not needed?
for (uint i= 0 ; i < tab->ref.key_parts ; i++)
{
if ((tab->ref.null_rejecting & 1 << i) && tab->ref.items[i]->is_null())
return -1;
}
#endif
if
(
cp_buffer_from_ref
(
tab
->
join
->
thd
,
table
,
&
tab
->
ref
))
return
-
1
;
if
((
error
=
table
->
file
->
ha_index_read_map
(
table
->
record
[
0
],
...
...
sql/sql_select.h
View file @
e7aa18fb
...
...
@@ -357,9 +357,6 @@ typedef struct st_join_table {
*/
uint
sj_strategy
;
//psergey-merge: todo: stop using this:
struct
st_join_table
*
first_sjm_sibling
;
void
cleanup
();
inline
bool
is_using_loose_index_scan
()
{
...
...
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