summaryrefslogtreecommitdiff
path: root/src/mongo/db/parsed_query.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/parsed_query.cpp')
-rw-r--r--src/mongo/db/parsed_query.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/parsed_query.cpp b/src/mongo/db/parsed_query.cpp
index 232792efdc5..ad23acef3b8 100644
--- a/src/mongo/db/parsed_query.cpp
+++ b/src/mongo/db/parsed_query.cpp
@@ -99,6 +99,11 @@ namespace mongo {
_filter = _filter.getOwned();
+ //
+ // Parse options that are valid for both queries and commands
+ //
+
+ // $readPreference
_hasReadPref = q.hasField(Query::ReadPrefField.name());
}