[SERVER-41089] Outdated help string for mongos isMaster command Created: 10/May/19  Updated: 29/Oct/23  Resolved: 22/Feb/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Bug Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

In cluster_is_master_cmd.cpp, the help string for mongos's isMaster command is "test if this is master half of a replica pair", which was never correct for mongos.



 Comments   
Comment by Githook User [ 22/Feb/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}

Message: SERVER-41089 Update mongos isMaster help string
Branch: master
https://github.com/mongodb/mongo/commit/23b2864a29554c9a27121303b774e80a42200130

Comment by A. Jesse Jiryu Davis [ 21/Feb/20 ]

It appears in obscure cases:

mongos> db.commandHelp('ismaster')
help for: isMaster test if this is master half of a replica pair 

Same for db.listCommands().

Comment by Sheeri Cabral (Inactive) [ 20/Feb/20 ]

Easy fix but likely users never see this anyway, so it's up to you if you want to fix or just close wontfix.

Comment by Sheeri Cabral (Inactive) [ 20/Feb/20 ]

help text should read "returns true if this is a mongos".

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