summaryrefslogtreecommitdiff
path: root/sql/ha_partition.h
diff options
context:
space:
mode:
authorunknown <mikael@mysql.com>2005-11-25 09:11:52 +0100
committerunknown <mikael@mysql.com>2005-11-25 09:11:52 +0100
commit68e89d69e0a9390ebd0944dc5d0aa0ff873dd6df (patch)
treeef7f85b77d32677de20e2eba20cb08d41fd3f3fa /sql/ha_partition.h
parent705965362d3b1ec4f1142aaaa9cf022fc7b7c647 (diff)
downloadmariadb-git-68e89d69e0a9390ebd0944dc5d0aa0ff873dd6df.tar.gz
Made set_part_info a handler method and not a ha_partition method only
The previous variant where it was a specific ha_partition method only worked for the partition handler. It was unfortunately called also for the NDB handler and in this case it called a random method in the NDB handler with random input. sql/ha_ndbcluster.cc: Moved initialisation of some handler variables to set_part_info method called earlly in the open process sql/ha_ndbcluster.h: Moved initialisation of some handler variables to set_part_info method called earlly in the open process sql/ha_partition.h: Made set_part_info a handler method and not a ha_partition method only sql/handler.h: Made set_part_info a handler method and not a ha_partition method only sql/sql_partition.cc: Made set_part_info a handler method and not a ha_partition method only
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r--sql/ha_partition.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h
index 8109fec9323..a727a278103 100644
--- a/sql/ha_partition.h
+++ b/sql/ha_partition.h
@@ -122,7 +122,7 @@ private:
PARTITION_SHARE *share; /* Shared lock info */
public:
- void set_part_info(partition_info *part_info)
+ virtual void set_part_info(partition_info *part_info)
{
m_part_info= part_info;
m_is_sub_partitioned= is_sub_partitioned(part_info);