Move UpdateOpEntry's 'multi' and 'sort' option check to parse time

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      At the time of writing, for an individual UpdateOpEntry, it is an error to specify both 'multi: true' and a sort. This check is enforced pretty close to runtime (i.e. before we execute the update) on both mongod and mongos. Ideally, this would be checked at parse time. 

      As such, this ticket tracks the work to move this check to parse time. Note that UpdateOpEntry is parsed using IDL, so this is effectively asking whether it is possible to add a custom parsing rule or a mutual exclusion rule to the existing IDL.

              Assignee:
              Unassigned
              Reporter:
              Mihai Andrei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: