[SERVER-35618] db.enableFreeMonitoring returns null on success, which is printed to shell console Created: 15/Jun/18  Updated: 23/Jul/18  Resolved: 15/Jun/18

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 4.0.0-rc5
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Jeremy Mikola Assignee: Andrew Morrow (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-35579 Improve user experience for db.enable... Closed
Participants:

 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?


Generated at Thu Feb 08 04:40:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.