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

Improve the precision of WT_CEIL_POS Macro for decimal values

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • StorEng - Defined Pipeline
    • 3

      The WT_CEIL_POS Macro is currently created for a specific use case, resulting in decimal values within the range of [.125, .25, .375, .5, .625, .75, .875]. However, there is a potential issue when dealing with smaller decimal values. For instance, calling WT_CEIL_POS(0.0000000000003) may produce an unexpected result of 0 instead of 1.

      This precision concern was discussed during the PR review.

      Acceptance Criteria: 

      Extend the Macro WT_CEIL_POS to fix the precision concern described above.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            siddhartha.mahajan@mongodb.com Sid Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: