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

Refactor LiteParsedQuery and CanonicalQuery::canonicalize()

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.6
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 14 (05/13/16)
    • 0

      Make the following changes to the LiteParsedQuery interface:

      Expose LiteParsedQuery(NamespaceString nss) and validate().
      Delete makeAsOpQuery() and makeAsFindCmd().
      Create setters and getters for all members.

      Additionally, remove all overloads of CanonicalQuery::canonicalize() except:
      canonicalize(const QueryMessage&, const ExtensionsCallback&),
      canonicalize(LiteParsedQuery*, const ExtenstionsCallback&), and
      canonicalize(const CanonicalQuery&, MatchExpression* root, const ExtensionsCallback&).
      Callers of all other overloads should construct a LiteParsedQuery.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: