diff options
author | Yasufumi Kinoshita <yasufumi.kinoshita@oracle.com> | 2012-04-27 19:38:13 +0900 |
---|---|---|
committer | Yasufumi Kinoshita <yasufumi.kinoshita@oracle.com> | 2012-04-27 19:38:13 +0900 |
commit | 08e7444e549722f61dd90fdf23ce05632c72044e (patch) | |
tree | f07a5b52fd94e41371d9cdaf71ac88b30ba2ea23 /storage/innobase/sync | |
parent | 1a2cf649dc411b47122419cb9e8c8ef1a26ae91a (diff) | |
download | mariadb-git-08e7444e549722f61dd90fdf23ce05632c72044e.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 93a7398f252..60a96fe4388 100644 --- a/storage/innobase/sync/sync0arr.c +++ b/storage/innobase/sync/sync0arr.c @@ -931,6 +931,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); + } + for (i = 0; i < sync_primary_wait_array->n_cells; i++) { double diff; |