Re: [Maria-developers] 0310b44: MDEV-10418 Assertion `m_extra_cache' failed in ha_partition::late_extra_cache(uint)

Hi, Alexey! On Dec 20, Alexey Botchkov wrote:
This seems fairly obvious, that it should. But why MySQL doesn't have this bug (despite not resetting m_extra_prepare_for_update)?
Regards, Sergei Chief Architect MariaDB and security@mariadb.org

The difference is in the ha_partition::late_extra_cache() function MySQL: if (m_extra_prepare_for_update) { (void) file->extra(HA_EXTRA_PREPARE_FOR_UPDATE); } Maria: if (m_extra_prepare_for_update) { DBUG_ASSERT(m_extra_cache); (void) file->extra(HA_EXTRA_PREPARE_FOR_UPDATE); } And that DBUG_ASSERT() actually does the crash. MySQL just blindly does the file->extra(HA_EXTRA_PREPARE_FOR_UPDATE) even for that 'SELECT * FROM t2;' query. Best regards. HF 21.12.2016 0:35, Sergei Golubchik wrote:
participants (2)
-
Alexey Botchkov
-
Sergei Golubchik