diff options
author | Sam Kleinman <samk@10gen.com> | 2015-06-11 17:00:03 -0400 |
---|---|---|
committer | Ramon Fernandez <ramon.fernandez@mongodb.com> | 2015-06-25 16:27:26 -0400 |
commit | b7192873095cf50a4d39d65daac31d9de1db9598 (patch) | |
tree | d84751f09f2cee663434dbd1c7d8a0038973f766 | |
parent | ef5f65566e79b1d28b5eb5c0ab24838c10a44050 (diff) | |
download | mongo-b7192873095cf50a4d39d65daac31d9de1db9598.tar.gz |
SERVER-18795: fix backport of printSlaveReplicationInfo on arbiters
(cherry picked from commit a204c686cc4d6ec47aeffe76758d11d161b69caf)
-rw-r--r-- | src/mongo/shell/db.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index bde62000b90..2b5fec4b89d 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -807,7 +807,7 @@ DB.prototype.printReplicationInfo = function() { print("cannot provide replication status from an arbiter."); return; } - else if (!this.isMaster().ismaster) { + else if (!isMaster.ismaster) { print("this is a slave, printing slave replication info."); this.printSlaveReplicationInfo(); return; |