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

Server-side rewrite for find command on mongod

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QO 2022-03-07, QO 2022-04-04

      Right after parsing the MatchExpression in CanonicalQuery,

      if (gFeatureFlagFLE2.isEnabledAndIgnoreFCV() &&
              findCommand->getEncryptionInformation().has_value()) {
              // If encryptionInformation is present, there may be FLEFindPayloads to rewrite, so call the
              // FLE rewrite logic.
              auto info = findCommand->getEncryptionInformation();
              auto rewriter = fle::FLEFindRewriter(findCommand->getEncryptionInformation().get(),
                                                   [](BSONElement) { return BSONObj(); });
              me = rewriter.rewriteMatchExpression(std::move(me));
          }
      

            Assignee:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Reporter:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: