Commit e013138d authored by unknown's avatar unknown

Maria: fix for "use of uninitialized value" Valgrind error.


storage/maria/ha_maria.cc:
  initialize ha_maria::data_file_type when opening the table
  (it was not initialized, causing a Valgrind error)
storage/maria/ma_locking.c:
  if it's impossible, let's test it
parent 1f3f5563
...@@ -1806,6 +1806,7 @@ int ha_maria::info(uint flag) ...@@ -1806,6 +1806,7 @@ int ha_maria::info(uint flag)
MY_APPEND_EXT | MY_UNPACK_FILENAME); MY_APPEND_EXT | MY_UNPACK_FILENAME);
if (strcmp(name_buff, maria_info.index_file_name)) if (strcmp(name_buff, maria_info.index_file_name))
index_file_name=maria_info.index_file_name; index_file_name=maria_info.index_file_name;
data_file_type= maria_info.data_file_type;
} }
if (flag & HA_STATUS_ERRKEY) if (flag & HA_STATUS_ERRKEY)
{ {
......
...@@ -190,6 +190,7 @@ int maria_lock_database(MARIA_HA *info, int lock_type) ...@@ -190,6 +190,7 @@ int maria_lock_database(MARIA_HA *info, int lock_type)
share->tot_locks++; share->tot_locks++;
break; break;
default: default:
DBUG_ASSERT(0);
break; /* Impossible */ break; /* Impossible */
} }
} }
......
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