You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thank you for getting in touch - secondaryPreferred() forces reads to a secondary where as primaryPreferred() allows reads from secondary which is in line with what CursorOption.SECONDARY_READS says.
spring-data-mongodb/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Query.java
Line 245 in 1ca64d9
in method
public ReadPreference getReadPreference()
return getMeta().getFlags().contains(CursorOption.SECONDARY_READS) ? ReadPreference.primaryPreferred() : null;
I think should be
return getMeta().getFlags().contains(CursorOption.SECONDARY_READS) ? ReadPreference.secondaryPreferred() : null;
The text was updated successfully, but these errors were encountered: