summaryrefslogtreecommitdiff
path: root/sql/sql_test.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2006-05-04 22:27:12 +0300
committerunknown <monty@mysql.com>2006-05-04 22:27:12 +0300
commitedfc33bed04e0bffc78e7ff36c4d8a97cb8c1646 (patch)
tree5e5925fe2b3656d07634b7f3f946f06629c45ea0 /sql/sql_test.cc
parent80d86948e2d457d2f413804b28f8e27a78780b36 (diff)
parentafe4715242576a8575abcec955baa4bfd78af85e (diff)
downloadmariadb-git-edfc33bed04e0bffc78e7ff36c4d8a97cb8c1646.tar.gz
Merge mysql.com:/home/my/mysql-5.0
into mysql.com:/home/my/mysql-5.1 mysql-test/lib/mtr_report.pl: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/r/subselect.result: Auto merged sql/mysql_priv.h: Auto merged sql/sql_select.cc: Auto merged sql/sql_test.cc: Auto merged sql/sql_view.cc: Auto merged sql/sql_lex.cc: manual merge
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r--sql/sql_test.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc
index bf86630d28c..b28aa4a1ce5 100644
--- a/sql/sql_test.cc
+++ b/sql/sql_test.cc
@@ -230,8 +230,8 @@ TEST_join(JOIN *join)
*/
void
-print_plan(JOIN* join, double read_time, double record_count,
- uint idx, const char *info)
+print_plan(JOIN* join, uint idx, double record_count, double read_time,
+ double current_read_time, const char *info)
{
uint i;
POSITION pos;
@@ -245,13 +245,15 @@ print_plan(JOIN* join, double read_time, double record_count,
DBUG_LOCK_FILE;
if (join->best_read == DBL_MAX)
{
- fprintf(DBUG_FILE,"%s; idx:%u, best: DBL_MAX, current:%g\n",
- info, idx, read_time);
+ fprintf(DBUG_FILE,
+ "%s; idx:%u, best: DBL_MAX, atime: %g, itime: %g, count: %g\n",
+ info, idx, current_read_time, read_time, record_count);
}
else
{
- fprintf(DBUG_FILE,"%s; idx: %u, best: %g, current: %g\n",
- info, idx, join->best_read, read_time);
+ fprintf(DBUG_FILE,
+ "%s; idx:%u, best: %g, accumulated: %g, increment: %g, count: %g\n",
+ info, idx, join->best_read, current_read_time, read_time, record_count);
}
/* Print the tables in JOIN->positions */
@@ -270,9 +272,9 @@ print_plan(JOIN* join, double read_time, double record_count,
Print the tables in JOIN->best_positions only if at least one complete plan
has been found. An indicator for this is the value of 'join->best_read'.
*/
- fputs("BEST_POSITIONS: ", DBUG_FILE);
if (join->best_read < DBL_MAX)
{
+ fputs("BEST_POSITIONS: ", DBUG_FILE);
for (i= 0; i < idx ; i++)
{
pos= join->best_positions[i];