mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
sql_select.cc:
if many plans have identical cost, which one will be used depends on how compiler optimizes floating-point calculations this fix adds repeatability to the optimizer sql/sql_select.cc: if many plans have identical cost, which one will be used depends on how compiler optimizes floating-point calculations this fix adds repeatability to the optimizer
This commit is contained in:
@ -3614,7 +3614,7 @@ best_extension_by_limited_search(JOIN *join,
|
||||
{
|
||||
memcpy((gptr) join->best_positions, (gptr) join->positions,
|
||||
sizeof(POSITION) * (idx + 1));
|
||||
join->best_read= current_read_time;
|
||||
join->best_read= current_read_time - 0.001;
|
||||
}
|
||||
DBUG_EXECUTE("opt",
|
||||
print_plan(join, current_read_time, current_record_count, idx, "full_plan"););
|
||||
|
Reference in New Issue
Block a user