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

Fix recovery mode lock file not being cleared on import/export #103805

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rsubtil
Copy link
Contributor

@rsubtil rsubtil commented Mar 8, 2025

Fixes #103528.

Running --import/--export implies --editor, and so the recovery mode functionality is active. However, the lock file is only cleared 1 second after the engine finished initialization. For these automated processes, that is too late, since the engine automatically closes itself once it is finished.

To address this and other similar cases, this changes it to also remove the lock file on cleanup, iff the exit code indicated success.

@rsubtil rsubtil requested a review from a team as a code owner March 8, 2025 11:02
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.

Running with the --headless flag does not result in removing the project's recovery mode lock if present
1 participant