diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-05-16 14:48:19 -0400 |
---|---|---|
committer | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-06-25 18:39:34 -0400 |
commit | f9c258b9c420e8984173af69c41a0636b8d719ad (patch) | |
tree | 1eb42dce4f6a7520b4c44e57e85b1204b53c92d5 /src/mongo/dbtests | |
parent | fdc5a96077aa3a0ddf45b4fea7b1d5c792e0b748 (diff) | |
download | mongo-f9c258b9c420e8984173af69c41a0636b8d719ad.tar.gz |
SERVER-36099 Trim FTDC connection pool stats
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/replica_set_monitor_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/replica_set_monitor_test.cpp b/src/mongo/dbtests/replica_set_monitor_test.cpp index cda3e494980..908377529b0 100644 --- a/src/mongo/dbtests/replica_set_monitor_test.cpp +++ b/src/mongo/dbtests/replica_set_monitor_test.cpp @@ -163,7 +163,8 @@ TEST(ReplicaSetMonitorTest, PrimaryRemovedFromSetStress) { replMonitor->appendInfo(monitorStateBuilder); BSONObj monitorState = monitorStateBuilder.done(); - BSONElement hostsElem = monitorState["hosts"]; + // Stats are under the replica set name, "test". + BSONElement hostsElem = monitorState["test"]["hosts"]; BSONElement addrElem = hostsElem[mongo::str::stream() << idxToRemove]["addr"]; hostToRemove = addrElem.String(); } |