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

sql: allow_role_memberships_to_change_during_transaction does not all… #137940

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

Conversation

Dedej-Bergin
Copy link
Contributor

…ow for creating or dropping roles

When we set allow_role_memberships_to_change_during_transaction we should be able to create and drop users even when there are contending transactions on the system.users and system.role_options. These code changes release the locks on those system tables when allow_role_memberships_to_change_during_transaction is set.

Fixes: #137710
Release note (bug fix): When we set allow_role_memberships_to_change_during_transaction are able to create and drop users quickly even when there are contending transactions on the system.users and system.role_options.

…ow for creating or dropping roles

When we set `allow_role_memberships_to_change_during_transaction` we should be
able to create and drop users even when there are contending transactions on the
`system.users` and `system.role_options`. These code changes release the locks on
those system tables when `allow_role_memberships_to_change_during_transaction` is set.

Fixes: cockroachdb#137710
Release note (bug fix): When we set `allow_role_memberships_to_change_during_transaction`
are able to create and drop users quickly even when there are contending transactions
on the `system.users` and `system.role_options`.
Copy link

blathers-crl bot commented Dec 23, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

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.

sql: allow_role_memberships_to_change_during_transaction does not allow for creating or dropping roles
2 participants