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

Clean up and consolidate the logic around MoveChunkRequest::appendAsCommand()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Sharding EMEA 2021-08-23

      The method could benefit from two simple refactoring operations:

      • remove the logic that ensure interoperability with version 3.4 (this would allow to drop a parameter from the function signature)
      • embed the logic to generate the writeConcern value (as it is required by any client invoking MoveChunkRequest::appendAsCommand()).

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: