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

Extend the size of TypeBits in KeyString

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.2
    • Affects Version/s: 4.1 Desired
    • Component/s: Storage
    • None
    • Fully Compatible
    • v4.0
    • Storage NYC 2018-07-30, Storage NYC 2018-08-13, Storage NYC 2018-08-27

      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.

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

              Created:
              Updated:
              Resolved: