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

Move ASSERT_COLUMN_MARKED_FOR_XXX as methods to Field

Details

    Description

      New data types will introduce their own Field_xxx classes which will be implemented outside of field.cc.

      To be able to do similar asserts in new Field_xxx, let's move the code from macros to methods in Field, like this:

      inline bool Field::marked_for_read() const
      {
        return !table ||
               (!table->read_set ||
                bitmap_is_set(table->read_set, field_index) ||
                (!(ptr >= table->record[0] &&
                ptr < table->record[0] + table->s->reclength)));
      }
       
       
      inline bool Field::marked_for_write_or_computed() const
      {
        return is_stat_field || !table ||
               (!table->write_set ||
                bitmap_is_set(table->write_set, field_index) ||
                (!(ptr >= table->record[0] &&
                ptr < table->record[0] + table->s->reclength)));
      }
      

      Attachments

        Issue Links

          Activity

            bar Alexander Barkov created issue -
            bar Alexander Barkov made changes -
            Field Original Value New Value
            bar Alexander Barkov made changes -
            issue.field.resolutiondate 2019-04-06 07:38:42.0 2019-04-06 07:38:42.6
            bar Alexander Barkov made changes -
            Fix Version/s 10.4.4 [ 23310 ]
            Fix Version/s 10.4 [ 22408 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            elenst Elena Stepanova made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 95254 ] MariaDB v4 [ 133922 ]

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.