Commit 10a21dbc authored by Mattias Jonsson's avatar Mattias Jonsson

pre push fix for bug#38804

sql/ha_partition.cc:
  pre push fix for bug#38804
  Found a missing 'if' for releasing the mutex
parent 38592fb0
...@@ -2502,7 +2502,8 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked) ...@@ -2502,7 +2502,8 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
sizeof(HA_DATA_PARTITION)); sizeof(HA_DATA_PARTITION));
if (!ha_data) if (!ha_data)
{ {
pthread_mutex_unlock(&table_share->mutex); if (is_not_tmp_table)
pthread_mutex_unlock(&table_share->mutex);
goto err_handler; goto err_handler;
} }
DBUG_PRINT("info", ("table_share->ha_data 0x%p", ha_data)); DBUG_PRINT("info", ("table_share->ha_data 0x%p", ha_data));
......
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