-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly avoid advisory Yugabyte lock errors
The `try_lock` method was not properly checking for Yugabyte before attempting to acquire an advisory lock. Likely it used to be a warning, but now is an error that cannot be avoided. So have `try_lock` check for Yugabyte before attempting to take an advisory lock. This requires fetching the database handle, first, as the database is not identified until it connects. So abstract that need by replacing the `_provider` attribute with a method that checks a DBI private module attribute. Fixes #841.
- Loading branch information
Showing
3 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters