Commit 14315191 authored by unknown's avatar unknown

sql_db.cc:

  Bug#19392: Rename Database: Crash if case change
  Additional minor fix, to avoid compiler warnings.


sql/sql_db.cc:
  Bug#19392: Rename Database: Crash if case change
  Additional minor fix, to avoid compiler warnings.
parent 9c686c8a
......@@ -134,8 +134,8 @@ void lock_db_delete(const char *name, uint length)
{
my_dblock_t *opt;
safe_mutex_assert_owner(&LOCK_lock_db);
if (opt= (my_dblock_t *)hash_search(&lock_db_cache,
(const byte*) name, length))
if ((opt= (my_dblock_t *)hash_search(&lock_db_cache,
(const byte*) name, length)))
hash_delete(&lock_db_cache, (byte*) opt);
}
......
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