diff options
author | unknown <mikael@mysql.com> | 2005-11-25 09:11:52 +0100 |
---|---|---|
committer | unknown <mikael@mysql.com> | 2005-11-25 09:11:52 +0100 |
commit | 68e89d69e0a9390ebd0944dc5d0aa0ff873dd6df (patch) | |
tree | ef7f85b77d32677de20e2eba20cb08d41fd3f3fa /sql/handler.h | |
parent | 705965362d3b1ec4f1142aaaa9cf022fc7b7c647 (diff) | |
download | mariadb-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/handler.h')
-rw-r--r-- | sql/handler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 14fcd226da7..dc6e3edc40c 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1273,6 +1273,7 @@ public: #ifdef WITH_PARTITION_STORAGE_ENGINE virtual ulong partition_flags(void) const { return 0;} virtual int get_default_no_partitions(ulonglong max_rows) { return 1;} + virtual void set_part_info(partition_info *part_info) { return; } #endif virtual ulong index_flags(uint idx, uint part, bool all_parts) const =0; virtual ulong index_ddl_flags(KEY *wanted_index) const |