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

SettingsType should do all validation and default value determination

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.3
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2 04/24/15, Sharding 3 05/15/15

      Currently SettingsType is used for two global settings: balancer and chunk size and the extraction of each of these two values is all over the code.

      Instead of doing this, we should have two methods - getChunkSize and getBalancerSettings/isBalancerEnabled and these methods should do all the parsing and interpretation of the fields on the document.

            Assignee:
            daniel.alabi@10gen.com Daniel Alabi
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: