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

Remove $exists clause once master is no longer cross-compatible with MongoDB versions <= 3.2

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution

      Under SERVER-24506 we are introducing a ListCollectionFilter class, used to request only views or collections from the listCollections command. For backward compatibility with MongoDB 3.2 and older, the collection filter is specified as:

      {$or: [{type: "collection"},{type: {$exists: false}}]}
      

      Once master is no longer cross-compatible with versions of MongoDB 3.2 or under are no longer supported, this can be simplified to:

      {type: "collection"}
      

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: