[SERVER-4132] Command-line client no longer shows name of connected replica set Created: 24/Oct/11  Updated: 11/Jul/16  Resolved: 25/Oct/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.0.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Adam Fields Assignee: Brandon Diamond
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Operating System: ALL
Participants:

 Description   

The command line client used to indicate the name of the replica set (e.g.: "main_mongo:PRIMARY") in the prompt, but now it just says "PRIMARY". This makes it extremely difficult to keep track of multiple connections to different dbs in different terminal windows. Is there a way to get this old behavior back?



 Comments   
Comment by Brandon Diamond [ 25/Oct/11 ]

Added the missing append code; an earlier change may have caused this code to be deleted.

Comment by auto [ 25/Oct/11 ]

Author:

{u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}

Message: SERVER-4132: shell prompt now includes repset name
Branch: master
https://github.com/mongodb/mongo/commit/b92b87505a4899f4192701533584f077f9a8f5e4

Generated at Thu Feb 08 03:05:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.