disallow invalid term in OpTIme::asQuery() and appendAsQuery()

XMLWordPrintableJSON

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

      After removing PV0, we should not have oplog entries with term -1. For subsystems that need to locate oplog entries by optime, we should not be using PV0-style OpTimes.
      OpTime::appendAsQuery() is a function that is used for this purpose and we should be able to disallow invalid/unintialized terms in the function's code rather than querying for a missing term field.

              Assignee:
              Benety Goh
              Reporter:
              Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: