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

Correct COMPRESSED_REC_MAX_DATA_SIZE constant in InnoDB

    XMLWordPrintable

    Details

      Description

      /* The data size of record must not be larger than this on
      REDUNDANT row format because we reserve two upmost bits in a
      two byte offset for special purposes */
      #define REDUNDANT_REC_MAX_DATA_SIZE    (16383)
       
      /* The data size of record must be smaller than this on
      COMPRESSED row format because we reserve two upmost bits in a
      two byte offset for special purposes */
      #define COMPRESSED_REC_MAX_DATA_SIZE   (16384)
      
      

      COMPRESSED_REC_MAX_DATA_SIZE is actually COMPRESED_REC_UPPER_BOUND_DATA_SIZE. Both constants should have the same value to prevent off-by-one error like in this code: https://github.com/MariaDB/server/blob/a51f3b09bb99f2927ce107727316caac2c426eb1/storage/innobase/include/page0zip.ic#L182

        Attachments

          Activity

            People

            Assignee:
            kevg Eugene Kosov
            Reporter:
            kevg Eugene Kosov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: