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

exec_profile_handle: allow public access to associated profile #1112

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

muzarski
Copy link
Contributor

@muzarski muzarski commented Oct 29, 2024

Last time, I introduced getters for ExecutionProfile. However, I forgot that in cpp-rust-driver use case, we only have an access to ExecutionProfileHandle...

Since, we can convert handle to builder, I see no objections against having the ability to convert it to well-defined execution profile.

Obviously, we need to clone an Arc. But only a single one. Notice, however, that when converting to builder,
we need to clone multiple Arcs anyway (e.g. retry or load balancing policies).

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

Last time, I introduced getters for `ExecutionProfile`.
However, I forgot that in cpp-rust-driver use case, we only have
an access to `ExecutionProfileHandle`...

Since, we can convert handle to builder, I see no objections against
having the ability to convert it to well-defined execution profile.

Obviously, we need to clone an `Arc`. But only a single one.
Notice, however, that when converting to builder,
we need to clone multiple Arcs anyway (e.g. retry or load balancing policies).
@muzarski muzarski requested a review from Lorak-mmk October 29, 2024 14:21
@muzarski muzarski self-assigned this Oct 29, 2024
Copy link

cargo semver-checks found no API-breaking changes in this PR! 🎉🥳
Checked commit: 9df44f6

@muzarski muzarski requested a review from wprzytula October 29, 2024 15:14
@wprzytula wprzytula merged commit 64b4afc into scylladb:main Oct 30, 2024
11 checks passed
@wprzytula wprzytula mentioned this pull request Nov 14, 2024
@muzarski muzarski deleted the exec-profile-handle-to-profile branch December 19, 2024 16:34
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.

2 participants