diff -Naru ./mysql-5.1.35/sql/ha_partition.cc ./mysql-5.1.35-vp/sql/ha_partition.cc --- ./mysql-5.1.35/sql/ha_partition.cc 2009-05-14 20:34:56.000000000 +0900 +++ ./mysql-5.1.35-vp/sql/ha_partition.cc 2009-07-02 00:08:34.000000000 +0900 @@ -5381,6 +5381,21 @@ /* Currently only NDB use the *_CANNOT_BATCH */ break; } + /* Category 9), used by marge handlers */ + case HA_EXTRA_ATTACH_CHILDREN: + int result; + handler **file; + if ((result = loop_extra(operation))) + DBUG_RETURN(result); + m_no_locks = 0; + file = m_file; + do + { + m_no_locks += (*file)->lock_count(); + } while (*(++file)); + break; + case HA_EXTRA_DETACH_CHILDREN: + DBUG_RETURN(loop_extra(operation)); default: { /* Temporary crash to discover what is wrong */