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

Possible problem with ha_innobase::build_template

    XMLWordPrintable

    Details

      Description

      While working on MDEV-27366 a potentially problematic piece of code was found in /storage/innobase/handler/ha_innodb.cc:

                   if ((active_index != MAX_KEY
      	            && active_index == pushed_idx_cond_keyno)
      	            || (pushed_rowid_filter && rowid_filter_is_active)) {
      		       /* Push down an index condition or an end_range check. */
              ...
      		if (active_index == pushed_idx_cond_keyno) {
      			m_prebuilt->idx_cond = this;
      		}
      	}
      

      The last condition satisfies when

      active_index == pushed_idx_cond_keyno == MAX_KEY

      which doesn't look correct. After fixing MDEV-27366 there is no test case to reproduce this scenario.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oleg.smirnov Oleg Smirnov
              Reporter:
              oleg.smirnov Oleg Smirnov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.