Skip to content

Commit 6ead524

Browse files
committed
more reead pref
1 parent 4e9ecb1 commit 6ead524

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/verifier/migration_verifier.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,10 @@ func (verifier *Verifier) verificationTaskCollection() *mongo.Collection {
13501350
}
13511351

13521352
func (verifier *Verifier) srcClientDatabase(dbName string) *mongo.Database {
1353-
db := verifier.srcClient.Database(dbName)
1353+
db := verifier.srcClient.Database(
1354+
dbName,
1355+
options.Database().SetReadPreference(verifier.readPreference),
1356+
)
13541357

13551358
// TODO REP-6772: Restore read & write concern guard rails.
13561359

0 commit comments

Comments
 (0)