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

Fix typo in the comment descibing WT_CELL structure

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT10.0.0, 4.4.2, 4.7.0
    • Affects Version/s: WT3.2.1
    • Component/s: None
    • 1
    • Execution Team 2020-09-07

      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
      

       

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

              Created:
              Updated:
              Resolved: