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

index: Fix file deletion #6472

Merged
merged 1 commit into from
May 12, 2023
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented May 12, 2023

add_path() fails if a file does not exist and remove_path() must be used instead. The remove-crate admin tool can cause a situation in which a crate is deleted from the database and subsequently from the index too. This commit fixes a background job crash due to the missing file.

`add_path()` fails if a file does not exist and `remove_path()` must be used instead. The `remove-crate` admin tool can cause a situation in which a crate is deleted from the database and subsequently from the index too. This commit fixes a background job crash due to the missing file.
@Turbo87 Turbo87 added C-bug 🐞 Category: unintended, undesired behavior A-backend ⚙️ labels May 12, 2023
@Turbo87 Turbo87 enabled auto-merge (squash) May 12, 2023 10:51
@Turbo87 Turbo87 merged commit ddba48c into rust-lang:master May 12, 2023
6 checks passed
@Turbo87 Turbo87 deleted the fix-crate-delete branch May 12, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant