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

Function Rows_log_event::process_triggers seems to always run m_table->triggers->process_triggers

    XMLWordPrintable

Details

    Description

      The code from here: https://github.com/MariaDB/server/blob/6ce0a6f9ad77e7934e27db1b73d6d98064352928/sql/log_event_server.cc#L7114

      Shows

       if (slave_run_triggers_for_rbr == SLAVE_RUN_TRIGGERS_FOR_RBR_YES)
        {
          result= m_table->triggers->process_triggers(thd, event,
                                                      time_type,
                                                      old_row_is_record1);
        }
        else
          result= m_table->triggers->process_triggers(thd, event,
                                                      time_type,
                                                      old_row_is_record1);
      

      Which seems to run the exact same function despite of the condition. At the same time, RBR triggers seems to work correctly.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            arubin Alexander Rubin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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