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

Ignore value of oplogReplay find command option

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Querying, Replication, Storage
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Sprint:
      Query 2019-07-01, Query 2019-07-15, Query 2019-07-29
    • Linked BF Score:
      50

      Description

      The oplogReplay option to the find command (and oplogReplay bit in the legacy OP_QUERY find protocol) currently must be set by the client in order to enable an optimized code path for queries looking for a particular range of ts values in the oplog. See getOplogStartHack() in get_executor.cpp.

      Instead of requiring clients to explicitly enable this optimization, the query system should automatically optimize such queries, whether or not oplogReplay is set. This should allow us to mark the oplogReplay option as deprecated. The implementation can change to accept oplogReplay but entirely ignore its true/false value.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              xinhao.zhang Xin Hao Zhang (Inactive)
              Reporter:
              david.storch David Storch
              Participants:
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: