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 4e9ecb1 commit 6ead524Copy full SHA for 6ead524
internal/verifier/migration_verifier.go
@@ -1350,7 +1350,10 @@ func (verifier *Verifier) verificationTaskCollection() *mongo.Collection {
1350
}
1351
1352
func (verifier *Verifier) srcClientDatabase(dbName string) *mongo.Database {
1353
- db := verifier.srcClient.Database(dbName)
+ db := verifier.srcClient.Database(
1354
+ dbName,
1355
+ options.Database().SetReadPreference(verifier.readPreference),
1356
+ )
1357
1358
// TODO REP-6772: Restore read & write concern guard rails.
1359
0 commit comments