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

Issue #263: Tweak the parameters used when handling SQLite database c… #264

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

Castaglia
Copy link
Owner

…ontention.

@Castaglia Castaglia self-assigned this Feb 29, 2024
@@ -64,12 +64,12 @@ static int db_busy(void *user_data, int busy_count) {
/* If we're busy, then sleep for a short while, on the assumption that the
* other process will finish its business with our tables.
*/
(void) pr_timer_usleep(PROXY_DB_SQLITE_MAX_RETRY_DELAY_MS);
(void) pr_timer_usleep(PROXY_DB_SQLITE_MAX_RETRY_DELAY_MS * 1000);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually fixing a bug; we were not actually delaying long enough between retries.

@Castaglia Castaglia merged commit cbb0fb2 into master Mar 5, 2024
8 of 9 checks passed
@Castaglia Castaglia deleted the proxy-database-contention-issue263 branch March 5, 2024 01:21
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