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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.1.4
    • Internal Code, Sharding
    • None

    Description

      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();
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: