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

clarify or remove advanceNext return value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2023-02-20, Execution Team 2023-02-06

      The WiredTigerIndexCursorBase::advanceNext method returns a boolean with an unclear and undocumented meaning. It appears to be return !_eof, but in actuality one code path ends up calling updatePosition(true) which may result in _eof being set, but a true value being returned.

      It seems clear that some more documentation and testing is required at a minimum.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: