@@ -14,7 +14,6 @@ import (
1414 "go.mongodb.org/mongo-driver/event"
1515 "go.mongodb.org/mongo-driver/internal/logger"
1616 "go.mongodb.org/mongo-driver/mongo/description"
17- "go.mongodb.org/mongo-driver/mongo/readconcern"
1817 "go.mongodb.org/mongo-driver/mongo/readpref"
1918 "go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
2019 "go.mongodb.org/mongo-driver/x/mongo/driver"
@@ -24,7 +23,6 @@ import (
2423// Command is used to run a generic operation.
2524type Command struct {
2625 command bsoncore.Document
27- readConcern * readconcern.ReadConcern
2826 database string
2927 deployment driver.Deployment
3028 selector description.ServerSelector
@@ -79,7 +77,6 @@ func (c *Command) Execute(ctx context.Context) error {
7977 return errors .New ("the Command operation must have a Deployment set before Execute can be called" )
8078 }
8179
82- // TODO(GODRIVER-2649): Actually pass readConcern to underlying driver.Operation.
8380 return driver.Operation {
8481 CommandFn : func (dst []byte , desc description.SelectedServer ) ([]byte , error ) {
8582 return append (dst , c .command [4 :len (c .command )- 1 ]... ), nil
@@ -163,16 +160,6 @@ func (c *Command) Deployment(deployment driver.Deployment) *Command {
163160 return c
164161}
165162
166- // ReadConcern specifies the read concern for this operation.
167- func (c * Command ) ReadConcern (readConcern * readconcern.ReadConcern ) * Command {
168- if c == nil {
169- c = new (Command )
170- }
171-
172- c .readConcern = readConcern
173- return c
174- }
175-
176163// ReadPreference set the read preference used with this operation.
177164func (c * Command ) ReadPreference (readPreference * readpref.ReadPref ) * Command {
178165 if c == nil {
0 commit comments