diff options
author | Sam Helman <sam.helman@10gen.com> | 2014-11-06 15:53:17 -0500 |
---|---|---|
committer | Sam Helman <sam.helman@10gen.com> | 2014-11-06 15:53:17 -0500 |
commit | 66d8e467ed42d7388cc2419bbd6825a71a50bec4 (patch) | |
tree | ea3358beb94a896c03b83af99e0b2a0dbea309b3 | |
parent | fa28b2c6ff057185a5974b470254db0bf94515dc (diff) | |
download | mongo-66d8e467ed42d7388cc2419bbd6825a71a50bec4.tar.gz |
TOOLS-345: mongostat crashes when a new node is added to a replica set
Former-commit-id: 6df1dc2f6357f675fa1358f0fc64fe37b5374117
-rw-r--r-- | mongostat/stat_types.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mongostat/stat_types.go b/mongostat/stat_types.go index 60808d11745..f4ce8d67bc3 100644 --- a/mongostat/stat_types.go +++ b/mongostat/stat_types.go @@ -697,7 +697,7 @@ func NewStatLine(oldStat, newStat ServerStatus, key string, all bool) *StatLine returnVal.NodeType = "REC" } else if util.IsTruthy(newStat.Repl.ArbiterOnly) { returnVal.NodeType = "ARB" - } else if util.SliceContains(newStat.Repl.Me, newStat.Repl.Passives) { + } else if util.SliceContains(newStat.Repl.Passives, newStat.Repl.Me) { returnVal.NodeType = "PSV" } else if isReplSet { returnVal.NodeType = "UNK" |