@@ -14,7 +14,6 @@ import (
14
14
"go.mongodb.org/mongo-driver/event"
15
15
"go.mongodb.org/mongo-driver/internal/logger"
16
16
"go.mongodb.org/mongo-driver/mongo/description"
17
- "go.mongodb.org/mongo-driver/mongo/readconcern"
18
17
"go.mongodb.org/mongo-driver/mongo/readpref"
19
18
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
20
19
"go.mongodb.org/mongo-driver/x/mongo/driver"
@@ -24,7 +23,6 @@ import (
24
23
// Command is used to run a generic operation.
25
24
type Command struct {
26
25
command bsoncore.Document
27
- readConcern * readconcern.ReadConcern
28
26
database string
29
27
deployment driver.Deployment
30
28
selector description.ServerSelector
@@ -79,7 +77,6 @@ func (c *Command) Execute(ctx context.Context) error {
79
77
return errors .New ("the Command operation must have a Deployment set before Execute can be called" )
80
78
}
81
79
82
- // TODO(GODRIVER-2649): Actually pass readConcern to underlying driver.Operation.
83
80
return driver.Operation {
84
81
CommandFn : func (dst []byte , desc description.SelectedServer ) ([]byte , error ) {
85
82
return append (dst , c .command [4 :len (c .command )- 1 ]... ), nil
@@ -163,16 +160,6 @@ func (c *Command) Deployment(deployment driver.Deployment) *Command {
163
160
return c
164
161
}
165
162
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
-
176
163
// ReadPreference set the read preference used with this operation.
177
164
func (c * Command ) ReadPreference (readPreference * readpref.ReadPref ) * Command {
178
165
if c == nil {
0 commit comments