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

FORCE all partition to rebuild if any one of the partition does rebuild

    XMLWordPrintable

    Details

      Description

      During DDL, if one partition requires table rebuild and other partition doesn't need rebuild then all partition should be forced to rebuild.

      In ha_innobase::commit_inplace_alter_table() assumes that all partition does same operation

             /* Apply the changes to the data dictionary tables, for all
              partitions. */
       
              for (inplace_alter_handler_ctx** pctx = ctx_array;
                   *pctx && !fail; pctx++) {
                      ha_innobase_inplace_ctx*        ctx
                              = static_cast<ha_innobase_inplace_ctx*>(*pctx);
       
                      DBUG_ASSERT(new_clustered == ctx->need_rebuild());
       
                      fail = commit_set_autoinc(ha_alter_info, ctx, altered_table,
                                                table);
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thiru Thirunarayanan Balathandayuthapani
              Reporter:
              thiru Thirunarayanan Balathandayuthapani
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: