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

do not unlock views lock twice in explain schema system table queries #4954

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

Conversation

dorinhogea
Copy link
Contributor

When we do not cache a statement that uses schema system tables that are not collected (like, if this is an explain), we call sqlite3VdbeReset twice, once when we get the sqlite return code, and second when we finalize the statement. Reset the counter to avoid unlocking the views lock twice.

…are not collected

(like, if this is an explain), we call sqlite3VdbeReset twice, once when we get the
sqlite return code, and second when we finalize the statement.  Reset the counter to
avoid unlocking the views lock twice.

Signed-off-by: Dorin Hogea <[email protected]>
Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Coding style check: Success ✓.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 324/597 tests failed ⚠.

The first 10 failing tests are:
incremental_backup [setup failure]
sc_redo_step [setup failure]
sc_lock_inversion [setup failure]
schemalk_extralock_generated [setup failure]
sc_dups_logicalsc_generated [setup failure]
oflowaddrem [setup failure]
largecsc2 [setup failure]
interval [setup failure]
phys_rep_perf
incremental_backup_usenames

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.

3 participants