Commit bcb2ceec authored by bar@mysql.com's avatar bar@mysql.com

sql_db.cc:

  Bug#19392: Rename Database: Crash if case change
  Additional minor fix, to avoid compiler warnings.
parent 53bc4d51
......@@ -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