diff options
author | Yasufumi Kinoshita <yasufumi.kinoshita@oracle.com> | 2012-04-27 19:40:12 +0900 |
---|---|---|
committer | Yasufumi Kinoshita <yasufumi.kinoshita@oracle.com> | 2012-04-27 19:40:12 +0900 |
commit | 6e1eb5bd39406f90160f3850d9f36089439448e9 (patch) | |
tree | 6601fb0b70e3d584464ff49f619eb0787651a755 /storage/innobase/sync | |
parent | 0e6250743c7149d5f08dabe79cb2e878c28eb9c0 (diff) | |
parent | d90207321b0fac0052baa65a3c9396c385d874a9 (diff) | |
download | mariadb-git-6e1eb5bd39406f90160f3850d9f36089439448e9.tar.gz |
Bug#11758510 (#50723): INNODB CHECK TABLE FATAL SEMAPHORE WAIT TIMEOUT POSSIBLY TOO SHORT FOR BI
Fixed not to check timeout during the check table.
Diffstat (limited to 'storage/innobase/sync')
-rw-r--r-- | storage/innobase/sync/sync0arr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/innobase/sync/sync0arr.c b/storage/innobase/sync/sync0arr.c index 30caddccced..c6cbfc94dca 100644 --- a/storage/innobase/sync/sync0arr.c +++ b/storage/innobase/sync/sync0arr.c @@ -928,6 +928,11 @@ sync_array_print_long_waits( ibool fatal = FALSE; double longest_diff = 0; + /* For huge tables, skip the check during CHECK TABLE etc... */ + if (fatal_timeout > SRV_SEMAPHORE_WAIT_EXTENSION) { + return(FALSE); + } + #ifdef UNIV_DEBUG_VALGRIND /* Increase the timeouts if running under valgrind because it executes extremely slowly. UNIV_DEBUG_VALGRIND does not necessary mean that |