[SERVER-2616] merge printReplicationInfo and printSlaveReplicationInfo() WAS: db.printReplicationInfo should print a more help message when run on a secondary Created: 23/Feb/11  Updated: 12/Jul/16  Resolved: 03/Mar/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Improvement Priority: Major - P3
Reporter: Kyle Banker Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Currently it prints this:

{ "errmsg" : "neither master/slave nor replica set replication detected" }

It should detect that it's connected to a slave and just run db.printSlaveReplicationInfo() automatically.



 Comments   
Comment by auto [ 03/Mar/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: printReplicationInfo will print slave info on a slave SERVER-2616
https://github.com/mongodb/mongo/commit/8ccd4619486081d54081f9533005e16796580329

Comment by Eliot Horowitz (Inactive) [ 23/Feb/11 ]

we should just have 1 command that does the thing and says what your'e talking to

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