Hello,
Jorgen Loland a écrit, Le 14.01.2011 16:53:
> #At
> file:///export/home/jl208045/mysql/wl4800/mysql-next-mr-opt-backporting-wl4800-range-subselect/
> based on revid:jorgen.loland@stripped
>
> 3253 Jorgen Loland 2011-01-14
> WL#5741: Add optimizer tracing to subqueries
>
> * Fix review comments by Guilhem
> * Update copyright notice.
> === modified file 'sql/opt_range.h'
> --- a/sql/opt_range.h 2011-01-03 13:10:02 +0000
> +++ b/sql/opt_range.h 2011-01-14 15:53:48 +0000
> @@ -1,4 +1,4 @@
> -/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
> +/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
>
> This program is free software; you can redistribute it and/or modify
> it under the terms of the GNU General Public License as published by
> @@ -856,6 +856,14 @@ class SQL_SELECT :public Sql_alloc {
> table_map const_tables,read_tables;
> bool free_cond;
>
> + /**
> + Used by optimizer tracing if this is a subquery: Whether or not
Do you really mean "subquery"? for DYNAMIC_RANGE?
> + execution of this subselect has been traced by optimizer tracing
subselect?
> + already. If optimizer trace option DYNAMIC_RANGE is disabled,
> + this is used to disable tracing after the first one.
> + */
> + bool traced_before;
> +
> SQL_SELECT();
> ~SQL_SELECT();
> void cleanup();
>