summaryrefslogtreecommitdiff
path: root/innobase/dict
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-11-02 09:46:23 +0200
committerunknown <heikki@hundin.mysql.fi>2004-11-02 09:46:23 +0200
commit6a0ce3adbc776d5a62ffab636cc2a32c93c33e7e (patch)
tree225fc37b811bc1e7928d8413d6bbc207bd8dd564 /innobase/dict
parent46aa022aa6cf40801518d1be2c9e8e7ffcee9928 (diff)
downloadmariadb-git-6a0ce3adbc776d5a62ffab636cc2a32c93c33e7e.tar.gz
dict0load.c:
Raise fatal semaphore wait timeout to 2 hours when we are printing the InnoDB table monitor output innobase/dict/dict0load.c: Raise fatal semaphore wait timeout to 2 hours when we are printing the InnoDB table monitor output
Diffstat (limited to 'innobase/dict')
-rw-r--r--innobase/dict/dict0load.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/innobase/dict/dict0load.c b/innobase/dict/dict0load.c
index d430eadc97b..c2b778f77c3 100644
--- a/innobase/dict/dict0load.c
+++ b/innobase/dict/dict0load.c
@@ -20,6 +20,7 @@ Created 4/24/1996 Heikki Tuuri
#include "dict0dict.h"
#include "dict0boot.h"
#include "srv0start.h"
+#include "srv0srv.h"
/************************************************************************
Finds the first table name in the given database. */
@@ -123,6 +124,13 @@ dict_print(void)
ulint len;
mtr_t mtr;
+ /* Enlarge the fatal semaphore wait timeout during the InnoDB table
+ monitor printout */
+
+ mutex_enter(&kernel_mutex);
+ srv_fatal_semaphore_wait_threshold += 7200; /* 2 hours */
+ mutex_exit(&kernel_mutex);
+
mutex_enter(&(dict_sys->mutex));
mtr_start(&mtr);
@@ -145,6 +153,12 @@ loop:
mutex_exit(&(dict_sys->mutex));
+ /* Restore the fatal semaphore wait timeout */
+
+ mutex_enter(&kernel_mutex);
+ srv_fatal_semaphore_wait_threshold -= 7200; /* 2 hours */
+ mutex_exit(&kernel_mutex);
+
return;
}