We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e17849 commit 77c8ca9Copy full SHA for 77c8ca9
src/sdam/description/topology/mod.rs
@@ -188,7 +188,18 @@ impl TopologyDescription {
188
189
command.read_pref = Some(resolved_read_pref);
190
}
191
- _ => {}
+ _ => {
192
+ command.read_pref = match criteria {
193
+ Some(SelectionCriteria::ReadPreference(rp)) => Some(rp.clone()),
194
+ Some(SelectionCriteria::Predicate(_)) => {
195
+ Some(ReadPreference::PrimaryPreferred {
196
+ max_staleness: None,
197
+ tag_sets: None,
198
+ })
199
+ }
200
+ None => Some(ReadPreference::Primary),
201
202
203
204
205
0 commit comments