diff options
author | monty@mysql.com <> | 2006-05-04 22:27:12 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2006-05-04 22:27:12 +0300 |
commit | 7f3c8953327d8a63084111358b53c9b4cf5d2144 (patch) | |
tree | 5e5925fe2b3656d07634b7f3f946f06629c45ea0 /sql/sql_test.cc | |
parent | 34785c5c82d71e22c6ac0222ee42fc9204bddd48 (diff) | |
parent | 9e460e7a25e88bf62a320940fe53619a8b222b82 (diff) | |
download | mariadb-git-7f3c8953327d8a63084111358b53c9b4cf5d2144.tar.gz |
Merge mysql.com:/home/my/mysql-5.0
into mysql.com:/home/my/mysql-5.1
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 16 |
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]; |