summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2021-08-31 18:02:38 +0300
committerMonty <monty@mariadb.org>2021-09-01 13:47:02 +0300
commit49ae199604fa3f8129ded9d4490df022f61d7a1d (patch)
tree5373e40beeac5013340741a7c872fc2f75d30c04 /sql/ha_partition.cc
parent6bdc03ebccad17f7e9c202e64bf7c2c450a7396c (diff)
downloadmariadb-git-49ae199604fa3f8129ded9d4490df022f61d7a1d.tar.gz
Added support for ANALYZE TABLE to S3 tables
Other things - Cleaned up error messages for CHECK, REPAIR and OPTIMIZE
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index 73e9f8ee84f..6b82bc811aa 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -1509,7 +1509,8 @@ int ha_partition::handle_opt_partitions(THD *thd, HA_CHECK_OPT *check_opt,
/* print a line which partition the error belongs to */
if (error != HA_ADMIN_NOT_IMPLEMENTED &&
error != HA_ADMIN_ALREADY_DONE &&
- error != HA_ADMIN_TRY_ALTER)
+ error != HA_ADMIN_TRY_ALTER &&
+ error != HA_ERR_TABLE_READONLY)
{
print_admin_msg(thd, MYSQL_ERRMSG_SIZE, "error",
table_share->db.str, table->alias,