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

Spider: remove pattern str->reserve() then str->q_append()

    XMLWordPrintable

Details

    Description

      Remove the following pattern that can be seen anywhere in the Spider codebase.

      if (str->reserve(SPIDER_SQL_WHERE_LEN))
        DBUG_RETURN(HA_ERR_OUT_OF_MEM);
      str->q_append(SPIDER_SQL_WHERE_STR, SPIDER_SQL_WHERE_LEN);
      

      This makes the code less readable and is error-prone (e.g., MDEV-27184).

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              nayuta-yanagisawa Nayuta Yanagisawa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.