Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Conversation

@calyptobai
Copy link
Contributor

@calyptobai calyptobai commented Aug 9, 2023

This fixes BLO-1391.

On Windows, when we reset the database, we need to ensure that all handles to the existing bleep.db file are closed before renaming the file. Otherwise, the rename operation will fail. Now, we force all handles to be cleaned up by calling Pool::close.

It's not clear why we have to do this, I would expect sqlx to call this when we Drop the Pool.

@calyptobai calyptobai requested a review from ggordonhall August 9, 2023 16:55
@calyptobai calyptobai merged commit 413ab49 into main Aug 9, 2023
@calyptobai calyptobai deleted the fix-windows-db-resets branch August 9, 2023 17:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants