Commit fb945ef2 authored by Guilhem Bichot's avatar Guilhem Bichot

Fixing Valgrind error: deadlock detector was set to random; seen in many...

Fixing Valgrind error: deadlock detector was set to random; seen in many InnoDB tests like innodb-replace.test

storage/innobase/handler/ha_innodb.cc:
  Fixing Valgrind error: deadlock detector was set to random. Making the recently added lines closer
  to the InnoDB style (tabs not spaces)
parent d83f6470
......@@ -1405,6 +1405,7 @@ innobase_init(
int err;
bool ret;
char *default_path;
my_bool old_safe_mutex_deadlock_detector;
DBUG_ENTER("innobase_init");
handlerton *innobase_hton= (handlerton *)p;
......@@ -1660,13 +1661,13 @@ innobase_init(
srv_sizeof_trx_t_in_ha_innodb_cc = sizeof(trx_t);
#ifdef SAFE_MUTEX
/* Disable deadlock detection as it's very slow for the buffer pool */
my_bool old_safe_mutex_deadlock_detector;
safe_mutex_deadlock_detector= 0;
/* Disable deadlock detection as it's very slow for the buffer pool */
old_safe_mutex_deadlock_detector= safe_mutex_deadlock_detector;
safe_mutex_deadlock_detector= 0;
#endif
err = innobase_start_or_create_for_mysql();
#ifdef SAFE_MUTEX
safe_mutex_deadlock_detector= old_safe_mutex_deadlock_detector;
safe_mutex_deadlock_detector= old_safe_mutex_deadlock_detector;
#endif
if (err != DB_SUCCESS) {
my_free(internal_innobase_data_file_path,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment