Deduplicate code that verifies if an index can be used for $merge

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Refactored `supportsUniqueKey` function to a common implementation in `CommonProcessInterface` to eliminate duplicate code across MongoDB process interfaces.

      The function now takes an `IndexDescriptor` and collator parameters instead of working with raw BSONObj index definitions, providing a more consistent interface for checking if an index supports unique keys.

      This change consolidates the logic that was previously duplicated in `mongodb_process_interface.cpp`, `common_mongod_process_interface.cpp`, and `mongos_process_interface.cpp`.

            Assignee:
            Ivan Fefer
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: