Skip to content

Commit 7e2c686

Browse files
committed
remove partition-specific methods from the base handler class
1 parent 4ff0894 commit 7e2c686

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

sql/ha_partition.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ class ha_partition :public handler
14841484
return h;
14851485
}
14861486

1487-
virtual ha_rows part_records(void *_part_elem)
1487+
ha_rows part_records(void *_part_elem)
14881488
{
14891489
partition_element *part_elem= reinterpret_cast<partition_element *>(_part_elem);
14901490
DBUG_ASSERT(m_part_info);
@@ -1503,12 +1503,6 @@ class ha_partition :public handler
15031503
return part_recs;
15041504
}
15051505

1506-
virtual handler* part_handler(uint32 part_id)
1507-
{
1508-
DBUG_ASSERT(part_id < m_tot_parts);
1509-
return m_file[part_id];
1510-
}
1511-
15121506
friend int cmp_key_rowid_part_id(void *ptr, uchar *ref1, uchar *ref2);
15131507
friend int cmp_key_part_id(void *key_p, uchar *ref1, uchar *ref2);
15141508
};

sql/handler.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4601,10 +4601,6 @@ class handler :public Sql_alloc
46014601

46024602
bool native_versioned() const
46034603
{ DBUG_ASSERT(ht); return partition_ht()->flags & HTON_NATIVE_SYS_VERSIONING; }
4604-
virtual ha_rows part_records(void *_part_elem)
4605-
{ DBUG_ASSERT(0); return false; }
4606-
virtual handler* part_handler(uint32 part_id)
4607-
{ DBUG_ASSERT(0); return NULL; }
46084604
virtual void update_partition(uint part_id)
46094605
{}
46104606
protected:

0 commit comments

Comments
 (0)