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

Fix #7783: Deadlock during index creation when parallel workers are used #8163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 11, 2024

  1. Fix FirebirdSQL#7783: Deadlock during index creation when parallel wo…

    …rkers are used
    
    Deadlock is possible when index deletion and creation are performed in the same transaction and a deleted index is used by a computed field expression. Each worker attachment loads table's metadata, parses the expression and tries to get SR lock on the deleted index. They will never get it because the main thread holds EX lock and waits for worker attachments to complete. The solution is to prevent the optimizer from using deleted indexes by making an attempt to get SR lock with NO_WAIT.
    ilya071294 committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    ad3e7eb View commit details
    Browse the repository at this point in the history