Reuse command parse result in applyOps oplog application checks

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In checkOperationAuthorization, the command is parsed to perform an authorization check, but the parse result is discarded. When the operation is later executed via run(), the command is parsed again.

      The TODO at line 126 notes that the parse result should be cached and reused, with the caveat that the dbname may differ between the two phases (e.g., renameCollection uses admin for auth but the original namespace for execution).

            Assignee:
            Unassigned
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: