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

Balancer::run can call getValue() on non-OK StatusWith

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.4
    • Affects Version/s: None
    • Component/s: Internal Code, Sharding
    • None

      auto balSettingsResult = grid.catalogManager()->getGlobalSettings(SettingsType::BalancerDocKey);
      const bool isBalSettingsAbsent = balSettingsResult.getStatus() == ErrorCodes::NoSuchKey;                
      if (!balSettingsResult.isOK() && !isBalSettingsAbsent) {
          warning() << balSettingsResult.getStatus();
          return;
      }
      const SettingsType& balancerConfig = balSettingsResult.getValue();
      

            Assignee:
            daniel.alabi@10gen.com Daniel Alabi
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: