-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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/opt: fix negative annotation caching for RegionConfig #88515
sql/opt: fix negative annotation caching for RegionConfig #88515
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find! LGTM, but I'll defer to @msirek for approval.
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @ajwerner and @msirek)
-- commits
line 6 at r1:
nit: I believe it was introduced in 1540ea8 during 22.2 cycle, so no stable release with this bug and the release note is not needed.
pkg/sql/opt/table_meta.go
line 448 at r1 (raw file):
// GetRegionsInDatabase finds the full set of regions in the multiregion // database owning the table described by `tm`, or returns ok=false if not
nit: s/ok/hasRegionNames/
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @ajwerner)
Fixes cockroachdb#88511 Release note: None
f42e0ee
to
48529af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TFTR!
bors r+
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @yuzefovich)
Previously, yuzefovich (Yahor Yuzefovich) wrote…
nit: I believe it was introduced in 1540ea8 during 22.2 cycle, so no stable release with this bug and the release note is not needed.
Ack, gotta get that backport merged soon 🤞
pkg/sql/opt/table_meta.go
line 448 at r1 (raw file):
Previously, yuzefovich (Yahor Yuzefovich) wrote…
nit:
s/ok/hasRegionNames/
.
Done.
Build succeeded: |
Fixes #88511
Release note (performance improvement): Fixed minor bug where negative caching of region configuration information could result in extra work when use a database that is not configured for multi-region.