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

MYSQL_BIN_LOG::write_transaction_to_binlog - need_unlog detection loop is executed only once

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • None
    • 10.4, 10.5
    • None
    • None

    Description

      Looks like this break should be executed only when the condition is met, otherwise we will exit the loop after the first iteration.

      /sql/log.cc - MYSQL_BIN_LOG::write_transaction_to_binlog

        for (; ha_info; ha_info= ha_info->next())
        {
          if (ha_info->is_started() && ha_info->ht() != binlog_hton &&
              !ha_info->ht()->commit_checkpoint_request)
            entry.need_unlog= true;
          break;           <------
        }
      

      Attachments

        Issue Links

          Activity

            People

              Elkin Andrei Elkin
              yury.chaikou Yury Chaikou
              Votes:
              0 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.