-
Notifications
You must be signed in to change notification settings - Fork 433
feat(spanner): add support for lock_hint enum #15249
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15249 +/- ##
========================================
Coverage 92.92% 92.93%
========================================
Files 2394 2394
Lines 215461 215564 +103
========================================
+ Hits 200227 200329 +102
- Misses 15234 15235 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
scotthart
left a comment
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.
Reviewed 9 of 11 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: 10 of 11 files reviewed, 1 unresolved discussion
google/cloud/spanner/client.cc line 57 at r2 (raw file):
auto directed_read_option = ExtractOpt<DirectedReadOption>(opts); internal::OptionsSpan span(std::move(opts)); auto lock_hint = ExtractOpt<LockHintOption>(opts);
Here and in the other places we call ExtractOpt for the LockHintOption, we want to do this before we create the OptionSpan.
Ah good catch, thank you! Done, also added additional testing in client_test. |
scotthart
left a comment
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.
Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @mpeddada1)
This PR does the following:
The setup is very similar to what we have for feat(spanner): add support for order_by enum #15240
This change is