1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-23445: LIMIT ROWS EXAMINED throws error in Debug build only

Analysis: When we reach the maximum limit to examine rows killed_state is set
as ABORT. But this isn't an actual error and we still return TRUE. This
eventually sets error as UNKNOWN ERROR.
Fix: Check if need to stop execution by checking the killed state. If we have
to abort it, return false because this isn't an actual error.
This commit is contained in:
Rucha Deodhar
2020-10-08 23:05:35 +05:30
parent 311b7f94e6
commit 00bf48827f
2 changed files with 5 additions and 7 deletions

View File

@ -5273,6 +5273,11 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
free_root(&tmp_mem_root, MY_MARK_BLOCKS_FREE);
}
}
if (thd->killed == ABORT_QUERY)
{
error= 0;
goto err;
}
}
}
}