1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Subquery optimizations:

- Better comments
- Use more appropriate return types for functions
- Provide handling where it was missing.
This commit is contained in:
Sergey Petrunya
2010-05-10 19:28:19 +04:00
parent b2c57cedbf
commit b9688830ec
5 changed files with 47 additions and 33 deletions

View File

@@ -33,8 +33,6 @@
#define NO_MORE_RECORDS_IN_BUFFER (uint)(-1)
int do_jtbm_materialization_if_needed(JOIN_TAB *tab);
/*****************************************************************************
* Join cache module
******************************************************************************/
@@ -1780,8 +1778,11 @@ enum_nested_loop_state JOIN_CACHE_BNL::join_matching_records(bool skip_last)
/* Start retrieving all records of the joined table */
//jtbm-todo: error handling!
do_jtbm_materialization_if_needed(join_tab);
if (do_jtbm_materialization_if_needed(join_tab))
{
rc= NESTED_LOOP_ERROR;
goto finish;
}
if ((error= join_init_read_record(join_tab)))
{