Skip to content

Comments

* mongo: support readPreference in findOne#70

Merged
neowu merged 1 commit intoneowu:masterfrom
ctmillerlin:master
Sep 17, 2025
Merged

* mongo: support readPreference in findOne#70
neowu merged 1 commit intoneowu:masterfrom
ctmillerlin:master

Conversation

@ctmillerlin
Copy link
Contributor

This pull request makes a targeted improvement to the findOne method in MongoCollectionImpl.java by ensuring that the collection is accessed with the correct read preference specified in the FindOne parameter. This helps ensure that read operations can be directed to the appropriate MongoDB replica set member as needed.

@codecov
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.85%. Comparing base (eae0401) to head (e8421b2).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #70   +/-   ##
=========================================
  Coverage     79.84%   79.85%           
  Complexity      400      400           
=========================================
  Files           538      538           
  Lines         15111    15111           
  Branches       2036     2036           
=========================================
+ Hits          12066    12067    +1     
+ Misses         2224     2223    -1     
  Partials        821      821           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@neowu neowu merged commit 2d2ec59 into neowu:master Sep 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants