List:Internals« Previous MessageNext Message »
From:konstantin Date:June 24 2005 10:27pm
Subject:bk commit into 5.0 tree (konstantin:1.2014)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of kostja. When kostja does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2014 05/06/25 00:27:40 konstantin@stripped +1 -0
  Free unused JOINs early even if using subqueries.

  sql/sql_select.cc
    1.352 05/06/25 00:27:34 konstantin@stripped +1 -2
    According to the conclusion made in the previous patch, we can widen
    the range of cases when JOINs are fully freed early, and include 
    subqueries to it.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	konstantin
# Host:	dragonfly.local
# Root:	/opt/local/work/mysql-5.0-join_free2push

--- 1.351/sql/sql_select.cc	2005-06-24 23:28:51 +04:00
+++ 1.352/sql/sql_select.cc	2005-06-25 00:27:34 +04:00
@@ -5902,8 +5902,7 @@
     Optimization: if not EXPLAIN and we are done with the JOIN,
     free all tables.
   */
-  full= full || (!select_lex->uncacheable && !thd->lex->subqueries
&&
-                 !thd->lex->describe);
+  full= full || (!select_lex->uncacheable && !thd->lex->describe);
 
   cleanup(full);
 
Thread
bk commit into 5.0 tree (konstantin:1.2014)konstantin24 Jun