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

Phase out the use of WSREP_KEY_SHARED key type in favour of WSREP_KEY_REFERENCE #228

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

Conversation

ayurchen
Copy link
Member

@ayurchen ayurchen commented Apr 6, 2024

(but keep support for it for backward compatibility) The only place where wsrep-lib made use of WSREP_KEY_SHARED is wsrep::append_sr_keys_for_commit() which is used only with protocols >= 4 so we don't need to worry about the protocol version and just change wsrep::key::shared to wsrep::key::reference.

Refs #227

…_REfERENCE

(but keep support for it for backward compatibility)
The only place where wsrep-lib made use of WSREP_KEY_SHARED is
wsrep::append_sr_keys_for_commit() which is used only with protocols >= 4
so we don't need to worry about the protocol version and just change
wsrep::key::shared to wsrep::key::reference.

Refs #227
@ayurchen ayurchen self-assigned this Apr 6, 2024
@@ -1960,7 +1960,7 @@ int wsrep::transaction::append_sr_keys_for_commit()
j(i->second.begin());
ret == 0 && j != i->second.end(); ++j)
{
wsrep::key key(wsrep::key::shared);
wsrep::key key(wsrep::key::reference);
Copy link
Contributor

Choose a reason for hiding this comment

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

Reference key is probably too strong here. The purpose of adding shared keys to commit fragment is to create dependency, but changing it to reference key will create a conflict with exclusive.

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