diff options
Diffstat (limited to 'src/mongo/shell/utils.js')
-rw-r--r-- | src/mongo/shell/utils.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/shell/utils.js b/src/mongo/shell/utils.js index 5cc1481e7b3..ac7255f806b 100644 --- a/src/mongo/shell/utils.js +++ b/src/mongo/shell/utils.js @@ -1419,7 +1419,7 @@ rs.help = function() { print(); print("\trs.printReplicationInfo() check oplog size and time range"); print( - "\trs.printSlaveReplicationInfo() check replica set members and replication lag"); + "\trs.printSecondaryReplicationInfo() check replica set members and replication lag"); print("\tdb.isMaster() check who is primary"); print("\tdb.hello() check who is primary"); print(); @@ -1449,7 +1449,12 @@ rs.initiate = function(c) { return db._adminCommand({replSetInitiate: c}); }; rs.printSlaveReplicationInfo = function() { - return db.printSlaveReplicationInfo(); + print( + "WARNING: printSlaveReplicationInfo is deprecated and may be removed in the next major release. Please use printSecondaryReplicationInfo instead."); + return db.printSecondaryReplicationInfo(); +}; +rs.printSecondaryReplicationInfo = function() { + return db.printSecondaryReplicationInfo(); }; rs.printReplicationInfo = function() { return db.printReplicationInfo(); |