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

Improve SET EXCLUSIVE 2 and use stable time source for timeout exceptions #3861

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

katzyn
Copy link
Contributor

@katzyn katzyn commented Aug 4, 2023

  1. SET EXCLUSIVE 2 doesn't wait any more if there are no other user sessions or when they were immediately closed by suspend().
  2. Database.closeAllSessionsExcept() and Transaction.waitForThisToEnd() now use System.nanoTime() instead of unsafe System.currentTimeMillis() to avoid problems caused by possible adjustments of system clock.

@katzyn katzyn merged commit ab7cf26 into h2database:master Aug 4, 2023
3 checks passed
@katzyn katzyn deleted the nanoTime branch August 4, 2023 09:17
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.

None yet

1 participant