Skip to content

CDRIVER-5946 remove deprecated index management API #1957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 26, 2025

Conversation

kevinAlbs
Copy link
Collaborator

Summary

Removes deprecated functions:

  • mongoc_collection_create_index_with_opts
  • mongoc_collection_create_index
  • mongoc_collection_ensure_index
  • mongoc_collection_create_indexes_with_opts
  • mongoc_collection_find_indexes

Removes types and associated functions defined in mongoc-index.h:

  • mongoc_index_opt_t
  • mongoc_index_opt_geo_t
  • mongoc_index_opt_wt_t

Background

The types in mongoc-index.h were not previously deprecated. I expect there is low risk of continued use (no expected use case).

CDRIVER-5945 tracks a bug discovered with mongoc_collection_create_indexes_with_opts not applying the collection's writeConcern. That can be fixed separately.

@kevinAlbs kevinAlbs marked this pull request as ready for review March 26, 2025 15:07
Copy link
Contributor

@vector-of-bool vector-of-bool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevinAlbs kevinAlbs merged commit e760cd7 into mongodb:master Mar 26, 2025
40 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants