mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
sql_print_error cleanup
This commit is contained in:
@ -2193,7 +2193,7 @@ void SEL_ARG::test_use_count(SEL_ARG *root)
|
||||
uint e_count=0;
|
||||
if (this == root && use_count != 1)
|
||||
{
|
||||
sql_print_error("Note: Use_count: Wrong count %lu for root",use_count);
|
||||
sql_print_information("Use_count: Wrong count %lu for root",use_count);
|
||||
return;
|
||||
}
|
||||
if (this->type != SEL_ARG::KEY_RANGE)
|
||||
@ -2206,7 +2206,7 @@ void SEL_ARG::test_use_count(SEL_ARG *root)
|
||||
ulong count=count_key_part_usage(root,pos->next_key_part);
|
||||
if (count > pos->next_key_part->use_count)
|
||||
{
|
||||
sql_print_error("Note: Use_count: Wrong count for key at %lx, %lu should be %lu",
|
||||
sql_print_information("Use_count: Wrong count for key at %lx, %lu should be %lu",
|
||||
pos,pos->next_key_part->use_count,count);
|
||||
return;
|
||||
}
|
||||
@ -2214,7 +2214,7 @@ void SEL_ARG::test_use_count(SEL_ARG *root)
|
||||
}
|
||||
}
|
||||
if (e_count != elements)
|
||||
sql_print_error("Warning: Wrong use count: %u (should be %u) for tree at %lx",
|
||||
sql_print_warning("Wrong use count: %u (should be %u) for tree at %lx",
|
||||
e_count, elements, (gptr) this);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user