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

Likely a redundant declaration of Item_cache::used_table_map

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1, 10.0, 5.5
    • Fix Version/s: 5.5.44
    • Component/s: OTHER
    • Labels:
      None

      Description

      According to these declarations:

      class Item_basic_constant :public Item
      {
        table_map used_table_map;
        ...
      };
      ...
      class Item_cache: public Item_basic_constant
      {
      protected:
        Item *example;
        table_map used_table_map;
      ...
      }
      

      Item_cache has two used_tables_cache, one of which is declared in Item_cache itself, and another one is derived from Item_basic_constant.

      It's very likely that the second declaration is not really necessary.

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                bar Alexander Barkov
                Reporter:
                bar Alexander Barkov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: