Skip to content

Commit 2a4ca3c

Browse files
author
Darshan M N
committed
Bug#30766089 8.0.17: SEVERE REGRESSION IN PERFORMANCE OF SELECT COUNT(*) FROM
LARGE TABLE WITH LOB PB2-fix: Fix the test failure in test main.kill_debug in PB2. The issue was that a debug statement set by the test wasn't being executed because we'd disabled the read ahead code and the debug statement was executed here. It has now been moved to the main thread. Approved-by: Sunny Bains <sunny.bains@oracle.com>
1 parent 66bd0e7 commit 2a4ca3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/innobase/row/row0pread.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,8 +1052,6 @@ dberr_t Parallel_reader::Scan_ctx::create_contexts(const Ranges &ranges) {
10521052
}
10531053

10541054
void Parallel_reader::read_ahead_worker(page_no_t n_pages) {
1055-
DBUG_EXECUTE_IF("bug28079850", set_error_state(DB_INTERRUPTED););
1056-
10571055
while (is_active() && !is_error_set()) {
10581056
uint64_t dequeue_count{};
10591057

@@ -1161,6 +1159,8 @@ void Parallel_reader::parallel_read() {
11611159
read_ahead();
11621160
}
11631161

1162+
DBUG_EXECUTE_IF("bug28079850", set_error_state(DB_INTERRUPTED););
1163+
11641164
/* Don't wait for the threads to finish if the read is not synchronous. */
11651165
if (!m_sync) {
11661166
return;

0 commit comments

Comments
 (0)