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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 4.0.0-rc5
    • Component/s: Shell
    • None

      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?

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

              Created:
              Updated:
              Resolved: