Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1.8, 10.0(EOL), 10.1(EOL)
-
10.1.8-MariaDB-1~precise mariadb.org binary distribution (ubuntu)
-
10.0.24
Description
MariaDB [test]> alter online table test comment = 'Test', ALGORITHM=INPLACE;
|
ERROR 1845 (0A000): ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY.
|
This is a partitioned table. But, as per the documentation https://mariadb.com/kb/en/mariadb/alter-table/ , this operation should happen instantly.
Please let me know if you need further information.
Thanks.
-Bala
bala.linux, are you using MyISAM engine for the table?
For now I'll assume you are.
--source include/have_partition.inc
create table t1 (i int) engine=MyISAM partition by hash(i) partitions 2;
alter table t1 comment 'test', algorithm=inplace;
drop table t1;
MariaDB [test]> alter table t1 comment 'test', algorithm=inplace;
ERROR 1845 (0A000): ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY.
Works okay with InnoDB and without partitioning.
Reproducible on MySQL 5.6.10, but apparently it was fixed in MySQL 5.6.11 – the release notes have this:
Maybe we got the InnoDB part of the fix with regular InnoDB merges, but MyISAM still has the problem.