3300 Mattias Jonsson 2011-03-18 [merge]
merge
modified:
sql/ha_partition.cc
3299 Georgi Kodinov 2011-03-18 [merge]
merge
modified:
mysql-test/include/have_plugin_auth.inc
mysql-test/t/mysql_client_test-master.opt
mysql-test/t/mysql_client_test.test
=== modified file 'sql/ha_partition.cc'
--- a/sql/ha_partition.cc 2011-03-17 07:40:26 +0000
+++ b/sql/ha_partition.cc 2011-03-18 10:31:17 +0000
@@ -4610,7 +4610,8 @@ int ha_partition::index_read_idx_map(uch
break;
}
}
- m_last_part= part;
+ if (part <= m_part_spec.end_part)
+ m_last_part= part;
}
else
{
@@ -6605,7 +6606,14 @@ void ha_partition::print_error(int error
{
/* In case m_file has not been initialized, like in bug#42438 */
if (m_file)
+ {
+ if (m_last_part >= m_tot_parts)
+ {
+ DBUG_ASSERT(0);
+ m_last_part= 0;
+ }
m_file[m_last_part]->print_error(error, errflag);
+ }
else
handler::print_error(error, errflag);
}
No bundle (reason: useless for push emails).
| Thread |
|---|
| • bzr push into mysql-trunk branch (mattias.jonsson:3299 to 3300) | Mattias Jonsson | 18 Mar |