summaryrefslogtreecommitdiff
path: root/src/mongo/client/read_preference.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/read_preference.h')
-rw-r--r--src/mongo/client/read_preference.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/client/read_preference.h b/src/mongo/client/read_preference.h
index c521913d94d..037a895555e 100644
--- a/src/mongo/client/read_preference.h
+++ b/src/mongo/client/read_preference.h
@@ -28,6 +28,7 @@
#pragma once
+#include "mongo/bson/simple_bsonobj_comparator.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/repl/optime.h"
#include "mongo/util/duration.h"
@@ -103,7 +104,7 @@ public:
}
bool operator==(const TagSet& other) const {
- return _tags == other._tags;
+ return SimpleBSONObjComparator::kInstance.evaluate(_tags == other._tags);
}
bool operator!=(const TagSet& other) const {
return !(*this == other);