summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-11-02 18:54:16 +0200
committerunknown <monty@mysql.com>2004-11-02 18:54:16 +0200
commit3200d66f8544dad77dc7ba8448550f3a15fa8eac (patch)
tree220c894342d371137d4e36b99eafb9861a3af25d /innobase
parent94839ddf5e23998c4e90776912f7d92a90277628 (diff)
parent2ddf5682e1f049c80c45d4a148ffd374a9feacf7 (diff)
downloadmariadb-git-3200d66f8544dad77dc7ba8448550f3a15fa8eac.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/my/mysql-4.1 innobase/dict/dict0load.c: Auto merged
Diffstat (limited to 'innobase')
-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 7f32c79717c..8fc6eb9141e 100644
--- a/innobase/dict/dict0load.c
+++ b/innobase/dict/dict0load.c
@@ -21,6 +21,7 @@ Created 4/24/1996 Heikki Tuuri
#include "dict0boot.h"
#include "rem0cmp.h"
#include "srv0start.h"
+#include "srv0srv.h"
/************************************************************************
Finds the first table name in the given database. */
@@ -124,6 +125,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);
@@ -146,6 +154,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;
}