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

Optionally ignore lock file #458

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

DavidMStraub
Copy link
Member

Gramps uses a lock file to ensure only one instance accesses a database at a time. So far, Web API respects this lock file, which makes sense e.g. when accessing the same database simultaneously with Web API and desktop. However, on a separate web server with multi-user access, this does not make sense as it can lead to errors when two requests happen simultaneously. Note that not respecting the lock file does not lead to inconsistencies - all database operations are still wrapped in transactions.

To preserve backwards compatibility, this PR adds the option to ignore the lock file through a configuration parameter, the default being the existing behaviour. The recommended setting will be to enable this on a web server where a desktop instance will not be used to access the database.

@DavidMStraub DavidMStraub merged commit a59cf27 into gramps-project:master Nov 19, 2023
1 check passed
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.

1 participant