#At file:///Users/mattiasj/clones/bzrroot/topush-51-5129rc/
2694 Mattias Jonsson 2008-10-01
pre push fix for bug#38804
modified:
sql/ha_partition.cc
per-file messages:
sql/ha_partition.cc
pre push fix for bug#38804
Found a missing 'if' for releasing the mutex
=== modified file 'sql/ha_partition.cc'
--- a/sql/ha_partition.cc 2008-10-01 10:14:55 +0000
+++ b/sql/ha_partition.cc 2008-10-01 10:40:05 +0000
@@ -2502,7 +2502,8 @@ int ha_partition::open(const char *name,
sizeof(HA_DATA_PARTITION));
if (!ha_data)
{
- pthread_mutex_unlock(&table_share->mutex);
+ if (is_not_tmp_table)
+ pthread_mutex_unlock(&table_share->mutex);
goto err_handler;
}
DBUG_PRINT("info", ("table_share->ha_data 0x%p", ha_data));
| Thread |
|---|
| • bzr commit into mysql-5.1 branch (mattias.jonsson:2694) Bug#38804 | Mattias Jonsson | 1 Oct |