Skip to content

Commit

Permalink
GODRIVER-3038 Add todo comments (#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed Nov 2, 2023
1 parent 373cda3 commit 17f9d77
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mongo/index_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func (iv IndexView) List(ctx context.Context, opts ...*options.ListIndexesOption
description.LatencySelector(iv.coll.client.localThreshold),
})
selector = makeReadPrefSelector(sess, selector, iv.coll.client.localThreshold)

// TODO(GODRIVER-3038): This operation should pass CSE to the ListIndexes
// Crypt setter to be applied to the operation.
op := operation.NewListIndexes().
Session(sess).CommandMonitor(iv.coll.client.monitor).
ServerSelector(selector).ClusterClock(iv.coll.client.clock).
Expand Down Expand Up @@ -251,6 +254,10 @@ func (iv IndexView) CreateMany(ctx context.Context, models []IndexModel, opts ..

option := options.MergeCreateIndexesOptions(opts...)

// TODO(GODRIVER-3038): This operation should pass CSE to the CreateIndexes
// Crypt setter to be applied to the operation.
//
// This was added in GODRIVER-2413 for the 2.0 major release.
op := operation.NewCreateIndexes(indexes).
Session(sess).WriteConcern(wc).ClusterClock(iv.coll.client.clock).
Database(iv.coll.db.name).Collection(iv.coll.name).CommandMonitor(iv.coll.client.monitor).
Expand Down Expand Up @@ -387,6 +394,9 @@ func (iv IndexView) drop(ctx context.Context, name string, opts ...*options.Drop
selector := makePinnedSelector(sess, iv.coll.writeSelector)

dio := options.MergeDropIndexesOptions(opts...)

// TODO(GODRIVER-3038): This operation should pass CSE to the DropIndexes
// Crypt setter to be applied to the operation.
op := operation.NewDropIndexes(name).
Session(sess).WriteConcern(wc).CommandMonitor(iv.coll.client.monitor).
ServerSelector(selector).ClusterClock(iv.coll.client.clock).
Expand Down

0 comments on commit 17f9d77

Please sign in to comment.