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

Remove '_ns' from the ReshardingSplitPolicy

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2021-04-05
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      The ReshardingSplitPolicy takes the source namespace as a parameter, but actually only uses it in the createFirstChunks method, where it is already available through the params argument.

      Because the InitialSplitPolicy is supposed to be agnostic to the namespace (it just takes the parameters from createFirstChunks, we should remove this from the constructor. Otherwise it is confusing to reason that _ns should match with params.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: