Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36228

Extend the size of TypeBits in KeyString

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.1 Desired
    • 4.1.2
    • Storage
    • None
    • Fully Compatible
    • v4.0
    • Storage NYC 2018-07-30, Storage NYC 2018-08-13, Storage NYC 2018-08-27

    Description

      Currently, the maximum size of a KeyString is limited to ~1KB so it's enough that the TypeBits is a 128-byte fixed size uint8_t array. Now that we want to remove the size limit of KeyString, TypeBits needs to be extended. The work of this ticket include:

      1. Change the fixed size array to a varied size buffer in TypeBits.
      2. Extend the encode scheme to represent TypeBits more than 127 bytes. Currently, only the first element of the array is the size byte which can only represent the size of TypeBits between 0 and 127 bytes. We want to use 4 bytes to represent the size now. Detailed design can be found in the design doc.

      Attachments

        Issue Links

          Activity

            People

              xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
              xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: