@@ -86,6 +86,9 @@ func (iv IndexView) List(ctx context.Context, opts ...*options.ListIndexesOption
8686 description .LatencySelector (iv .coll .client .localThreshold ),
8787 })
8888 selector = makeReadPrefSelector (sess , selector , iv .coll .client .localThreshold )
89+
90+ // TODO(GODRIVER-3038): This operation should pass CSE to the ListIndexes
91+ // Crypt setter to be applied to the operation.
8992 op := operation .NewListIndexes ().
9093 Session (sess ).CommandMonitor (iv .coll .client .monitor ).
9194 ServerSelector (selector ).ClusterClock (iv .coll .client .clock ).
@@ -251,6 +254,10 @@ func (iv IndexView) CreateMany(ctx context.Context, models []IndexModel, opts ..
251254
252255 option := options .MergeCreateIndexesOptions (opts ... )
253256
257+ // TODO(GODRIVER-3038): This operation should pass CSE to the CreateIndexes
258+ // Crypt setter to be applied to the operation.
259+ //
260+ // This was added in GODRIVER-2413 for the 2.0 major release.
254261 op := operation .NewCreateIndexes (indexes ).
255262 Session (sess ).WriteConcern (wc ).ClusterClock (iv .coll .client .clock ).
256263 Database (iv .coll .db .name ).Collection (iv .coll .name ).CommandMonitor (iv .coll .client .monitor ).
@@ -387,6 +394,9 @@ func (iv IndexView) drop(ctx context.Context, name string, opts ...*options.Drop
387394 selector := makePinnedSelector (sess , iv .coll .writeSelector )
388395
389396 dio := options .MergeDropIndexesOptions (opts ... )
397+
398+ // TODO(GODRIVER-3038): This operation should pass CSE to the DropIndexes
399+ // Crypt setter to be applied to the operation.
390400 op := operation .NewDropIndexes (name ).
391401 Session (sess ).WriteConcern (wc ).CommandMonitor (iv .coll .client .monitor ).
392402 ServerSelector (selector ).ClusterClock (iv .coll .client .clock ).
0 commit comments