summaryrefslogtreecommitdiff
path: root/src/mongo/client/replica_set_monitor_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/replica_set_monitor_test.cpp')
-rw-r--r--src/mongo/client/replica_set_monitor_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/client/replica_set_monitor_test.cpp b/src/mongo/client/replica_set_monitor_test.cpp
index 1a9b298bbd9..bd5e4b21c03 100644
--- a/src/mongo/client/replica_set_monitor_test.cpp
+++ b/src/mongo/client/replica_set_monitor_test.cpp
@@ -327,8 +327,7 @@ TEST(ReplicaSetMonitorTests, SlavesUsableEvenIfNoMaster) {
SetStatePtr state = boost::make_shared<SetState>("name", seeds);
Refresher refresher(state);
- const TagSet any(BSON_ARRAY(BSONObj()));
- const ReadPreferenceSetting secondary(ReadPreference_SecondaryOnly, any);
+ const ReadPreferenceSetting secondary(ReadPreference_SecondaryOnly, TagSet());
// Mock a reply from the only host we know about and have it claim to not be master or know
// about any other hosts. This leaves the scan with no more hosts to scan, but all hosts are