Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-6604

Fix typo in the comment descibing WT_CELL structure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: WT3.2.1
    • Fix Version/s: WT3.2.2, 4.4.2, 4.7.0
    • Component/s: None
    • Labels:
    • Story Points:
      1
    • Sprint:
      Execution Team 2020-09-07

      Description

      In WT3.2.1 version, there are minor typo describing WT_CELL structure.

      In cell.h:49 to 55,

      * Bits 1 and 2 are reserved for "short" key and value cells (that is, a cell 
      * carrying data less than 64B, where we can store the data length in the cell 
      * descriptor byte): 
      *	0x00	Not a short key/data cell 
      *	0x01	Short key cell 
      *	0x10	Short key cell, with a following prefix-compression byte 
      *	0x11	Short value cell
      

      However, numbers should be represented in binary, not hexadecimal.

       

      Hence, it would be fixed into like this:

      * Bits 1 and 2 are reserved for "short" key and value cells (that is, a cell 
      * carrying data less than 64B, where we can store the data length in the cell 
      * descriptor byte): 
      * 0b00 Not a short key/data cell 
      * 0b01 Short key cell 
      * 0b10 Short key cell, with a following prefix-compression byte 
      * 0b11 Short value cell
      

       

        Attachments

          Activity

            People

            Assignee:
            chenhao.qu Chenhao Qu
            Reporter:
            junhanlee2020@gmail.com Junhan Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: