Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-28943

Online alter fails under LOCK TABLE with ER_ALTER_OPERATION_NOT_SUPPORTED_REASON

    XMLWordPrintable

Details

    Description

      create table t (f int);
      lock table t write;
      alter table t force, algorithm=copy, lock=none;
       
      # Cleanup
      drop table t;
      

      bb-10.10-MDEV-16329 cb1f08bd1c

      mysqltest: At line 3: query 'alter table t force, algorithm=copy, lock=none' failed: ER_ALTER_OPERATION_NOT_SUPPORTED_REASON (1846): LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED
      

      If it's expected, it needs to be documented.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.