Commit 7e2c686b authored by Sergei Golubchik's avatar Sergei Golubchik

remove partition-specific methods from the base handler class

parent 4ff08948
......@@ -1484,7 +1484,7 @@ class ha_partition :public handler
return h;
}
virtual ha_rows part_records(void *_part_elem)
ha_rows part_records(void *_part_elem)
{
partition_element *part_elem= reinterpret_cast<partition_element *>(_part_elem);
DBUG_ASSERT(m_part_info);
......@@ -1503,12 +1503,6 @@ class ha_partition :public handler
return part_recs;
}
virtual handler* part_handler(uint32 part_id)
{
DBUG_ASSERT(part_id < m_tot_parts);
return m_file[part_id];
}
friend int cmp_key_rowid_part_id(void *ptr, uchar *ref1, uchar *ref2);
friend int cmp_key_part_id(void *key_p, uchar *ref1, uchar *ref2);
};
......
......@@ -4601,10 +4601,6 @@ class handler :public Sql_alloc
bool native_versioned() const
{ DBUG_ASSERT(ht); return partition_ht()->flags & HTON_NATIVE_SYS_VERSIONING; }
virtual ha_rows part_records(void *_part_elem)
{ DBUG_ASSERT(0); return false; }
virtual handler* part_handler(uint32 part_id)
{ DBUG_ASSERT(0); return NULL; }
virtual void update_partition(uint part_id)
{}
protected:
......
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