From 4b0a13ad29dd784ac92357ff56b8cdb91575ea12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20=C3=87etin?= Date: Thu, 7 Aug 2014 19:56:24 +0300 Subject: [PATCH] Update diagnostics commands Document said that printReplicationInfo() and printSlaveReplicationInfo() diagnostic methods are accessible via "rs" object. However they are in "db" object. --- source/core/master-slave.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/master-slave.txt b/source/core/master-slave.txt index d88a2fe8e38..0c3c53dbbb8 100644 --- a/source/core/master-slave.txt +++ b/source/core/master-slave.txt @@ -144,7 +144,7 @@ perspective of the master: .. code-block:: javascript - rs.printReplicationInfo() + db.printReplicationInfo() On a :term:`slave` instance, use the following operation in the :program:`mongo` shell to return the replication status from the @@ -152,7 +152,7 @@ perspective of the slave: .. code-block:: javascript - rs.printSlaveReplicationInfo() + db.printSlaveReplicationInfo() Use the :dbcommand:`serverStatus` as in the following operation, to return status of the replication: