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

db.enableFreeMonitoring returns null on success, which is printed to shell console

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Trivial - P5
    • Resolution: Duplicate
    • 4.0.0-rc5
    • None
    • Shell
    • None

    Description

      Both of the successful cases in db.enableFreeMonitoring appear to return null, which ends up printing "null" to the shell console. Consider:

      rs:PRIMARY> db.enableFreeMonitoring()
      Successfully initiated free monitoring. The registration is proceeding in the background. 
      Run db.getFreeMonitoringStatus() at any time to check on the progress.
      null
      

      Could this be avoided by simply using a value-less return statement?

      Attachments

        Issue Links

          Activity

            People

              andrew.morrow@mongodb.com Andrew Morrow
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: