summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.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_ndbcluster.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_ndbcluster.h')
-rw-r--r--sql/ha_ndbcluster.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h
index 1b3c717009a..fb506375797 100644
--- a/sql/ha_ndbcluster.h
+++ b/sql/ha_ndbcluster.h
@@ -534,6 +534,7 @@ class ha_ndbcluster: public handler
return (HA_CAN_PARTITION | HA_CAN_UPDATE_PARTITION_KEY |
HA_CAN_PARTITION_UNIQUE);
}
+ void set_part_info(partition_info *part_info);
ulong index_flags(uint idx, uint part, bool all_parts) const;
uint max_supported_record_length() const;
uint max_supported_keys() const;