mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
877d1735b1
3077: Don't remove DB if unreadable r=irevoire a=dureuill # Pull Request ## Related issue Related to #3069 Will fix it after merging into `main` ## What does this PR do? ### User standpoint - When the DB cannot be read after opening it, Meilisearch exits with an error message like previously, but it now leaves the DB untouched - When the DB cannot be read after importing it from a snapshot or dump, it is still removed, like previously. ### Dev standpoint - Add new local enum `OnFailure` that is used as a parameter to the `meilisearch_builder` closure to control when to keep or remove the DB in case of failure. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Louis Dureuil <louis@meilisearch.com> |
||
---|---|---|
.. | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |