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

Move replication specific assertion out of mdl

    XMLWordPrintable

    Details

      Description

      There's replication specific assertion in mdl.cc:

        /*
          Ensure that if we are trying to get an exclusive lock for a slave
          running parallel replication, then we are not blocked by another
          parallel slave thread that is not committed. This should never happen as
          the parallel replication scheduler should never schedule a DDL while
          DML's are still running.
        */
        DBUG_SLOW_ASSERT((mdl_request->type != MDL_INTENTION_EXCLUSIVE &&
                          mdl_request->type != MDL_EXCLUSIVE) ||
                         !(get_thd()->rgi_slave &&
                           get_thd()->rgi_slave->is_parallel_exec &&
                           lock->check_if_conflicting_replication_locks(this)));
      

      Please trying moving it out to replication code. Needed for another InnoDB cleanup, where we want to remove THD from InnoDB background threads and use MDL_context instead.

        Attachments

          Activity

            People

            Assignee:
            sachin.setiya.007 Sachin Setiya
            Reporter:
            svoj Sergey Vojtovich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: