Skip to content

Fix index creation on an empty database - #52

Merged
dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/index-maintenance
Oct 17, 2026
Merged

dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/index-maintenance

Conversation

@dblock

@dblock dblock commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Create the document_id index before enumerating existing full-text indexes, ensuring the collection exists for drivers that raise NamespaceNotFound. Add empty-collection regression coverage and documentation.

Fixes #47. Timeout-option coverage and documentation have been split into #59; this PR now only addresses empty-database index creation.

Depends on #51; its changes disappear from this diff when #51 merges.

Prepared by an AI on behalf of @dblock.

@dblock
dblock force-pushed the dblock/index-maintenance branch 2 times, most recently from ce942b5 to e0b3ac1 Compare October 17, 2026 02:52
@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Danger Report

No issues found.

View run

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/index-maintenance branch from 901b901 to e0b499d Compare October 17, 2026 03:09
@dblock
dblock merged commit 0bbca3f into mongoid:master Oct 17, 2026
12 checks passed
@dblock
dblock deleted the dblock/index-maintenance branch October 17, 2026 03:11
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.

Creating indexes from the console with an empty DB crashes with "ns does not exist"

1 participant