Skip to content

Commit 573c56a

Browse files
committed
Use db.writeSelector in Database.RunCommand
GODRIVER-332 Change-Id: Ie87533e17527daa1ab9ad352d7e8a72988da3314
1 parent 90ebeff commit 573c56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongo/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ func (db *Database) RunCommand(ctx context.Context, runCommand interface{}) (bso
7272
}
7373

7474
cmd := command.Command{DB: db.Name(), Command: runCommand}
75-
return dispatch.Command(ctx, cmd, db.client.topology, topology.ReadPrefSelector(readpref.Primary()))
75+
return dispatch.Command(ctx, cmd, db.client.topology, db.writeSelector)
7676
}

0 commit comments

Comments
 (0)