diff options
author | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-07-31 14:38:18 +0200 |
---|---|---|
committer | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-07-31 14:38:18 +0200 |
commit | f6b8b9d2f871ab59e1c5f22712a03603abd61a9b (patch) | |
tree | 5beb5e75fef8047c3da0acfcd0d96363fc790e3e /sql/ha_partition.cc | |
parent | 7c28ec97a985f3a9e22a2fe5048dc37f61d114a3 (diff) | |
download | mariadb-git-f6b8b9d2f871ab59e1c5f22712a03603abd61a9b.tar.gz |
Bug#40281, partitioning the general log table crashes the server
We disallow the partitioning of a log table. You could however
partition a table first, and then point logging to it. This is
not only against the docs, it also crashes the server.
We catch this case now.
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 67bc3156260..97ecd70d6f8 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -5381,6 +5381,13 @@ int ha_partition::extra(enum ha_extra_function operation) /* Currently only NDB use the *_CANNOT_BATCH */ break; } + /* + http://dev.mysql.com/doc/refman/5.1/en/partitioning-limitations.html + says we no longer support logging to partitioned tables, so we fail + here. + */ + case HA_EXTRA_MARK_AS_LOG_TABLE: + DBUG_RETURN(ER_UNSUPORTED_LOG_ENGINE); default: { /* Temporary crash to discover what is wrong */ |