mirror of https://github.com/MariaDB/server
Browse Source
For all degenerate select queries having sub-queries in them, the field rows_examined in the slow query log is always being set to 0. The problem is that, although sub-queries increment the rows_examined field of the thd object correctly, the degenerate outer select query is resetting the rows_examined to zero after it has finished execution, by invoking thd->set_examined_row_count(0). The solution is to remove the thd->set_examined_row_count(0) in the degenerate select queries.10.11-MDEV-37195-fix
3 changed files with 102 additions and 1 deletions
Loading…
Reference in new issue