summaryrefslogtreecommitdiff
path: root/sql/sql_join_cache.h
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-02-15 20:29:57 +0300
committerSergey Petrunya <psergey@askmonty.org>2011-02-15 20:29:57 +0300
commite4325ff60b234c9bc5e79cebead7376b59b3dcc5 (patch)
tree226c56878600a348a2bdd8c6b576c6e15627291d /sql/sql_join_cache.h
parent6c9076256fd2e1a07457add0e20207a6c64480bd (diff)
parent7b9bcaa5ecdc6a2d784f092fd4b56eb84bac7f60 (diff)
downloadmariadb-git-e4325ff60b234c9bc5e79cebead7376b59b3dcc5.tar.gz
MWL#90: Subqueries: Inside-out execution for materialized non-sj subqueries
- Merge with 5.3 (3)
Diffstat (limited to 'sql/sql_join_cache.h')
-rw-r--r--sql/sql_join_cache.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sql/sql_join_cache.h b/sql/sql_join_cache.h
index 546067fad24..e08f7eb7a52 100644
--- a/sql/sql_join_cache.h
+++ b/sql/sql_join_cache.h
@@ -125,7 +125,15 @@ protected:
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.
*/
- uint tables;
+ // 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
+ join cache.
+ If a join tab in the range represents an SJM-nest, then all tables from the
+ nest can have their fields in the join cache, too.
+ */
+ JOIN_TAB *start_tab;
/*
The total number of flag and data fields that can appear in a record
@@ -647,7 +655,7 @@ public:
buff= 0;
}
- JOIN_TAB *get_next_table(JOIN_TAB *tab);
+ // JOIN_TAB *get_next_table(JOIN_TAB *tab);
friend class JOIN_CACHE_HASHED;
friend class JOIN_CACHE_BNL;