Skip to content
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

MONGOID-5827 Allow duplicate indexes to be declared (backport to 8.1) #5971

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Mar 21, 2025

(Backport to 8.1-stable)

This adds a new feature flag (allow_duplicate_index_declarations) which defaults to false, which is the legacy behavior. When false, superficially-duplicate indexes are silently ignored. When true, all index declarations are passed through to the server, where duplicates will trigger a server-side error.

* MONGOID-5827 allow duplicate indexes to be declared

This adds a new feature flag (`allow_duplicate_index_declarations`)
which defaults to false, which is the legacy behavior. When false,
superficially-duplicate indexes are silently ignored. When true,
all index declarations are passed through to the server, where
duplicates will trigger a server-side error.

* account for 4.4 behavior
@jamis jamis requested a review from comandeo-mongo March 21, 2025 21:27
@jamis jamis merged commit 3c87007 into mongodb:8.1-stable Mar 24, 2025
55 of 58 checks passed
@jamis jamis deleted the mongoid-5827-8.1 branch March 24, 2025 19:47
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.

None yet

2 participants