Skip to content

Make ClusterStateCache.RemoveClusterState and Clear public - #4044

Merged
vonzshik merged 2 commits into
npgsql:mainfrom
vonzshik:4018-cluster-state-cache-public-remove
Oct 17, 2021
Merged

vonzshik merged 2 commits into
npgsql:mainfrom
vonzshik:4018-cluster-state-cache-public-remove

Conversation

@vonzshik

Copy link
Copy Markdown
Contributor

Closes #4018

@vonzshik
vonzshik requested a review from roji as a code owner October 16, 2021 16:25

@roji roji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@vonzshik would you be OK with moving this class to Npgsql.Internal? This would allow users to use the API in case they need to, but it would be easier for us to change it in the future. If we introduce DbDataSource, maybe it makes sense for that API to live there instead (even if a DbDataSource corresponds more to a database than a cluster).

@vonzshik

Copy link
Copy Markdown
Contributor Author

@roji sure, why not, as long as there is a way to access the API without reflection :)

@vonzshik
vonzshik requested a review from roji October 17, 2021 12:14
@vonzshik
vonzshik merged commit 50810f5 into npgsql:main Oct 17, 2021
@vonzshik
vonzshik deleted the 4018-cluster-state-cache-public-remove branch October 17, 2021 13:15
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.

Escape hatch API to manually control cluster state (for multiple hosts)

2 participants