Skip to content

Commit

Permalink
Phase out the use of WSREP_KEY_SHARED key type in favour of WSREP_KEY…
Browse files Browse the repository at this point in the history
…_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
  • Loading branch information
ayurchen committed Apr 6, 2024
1 parent dfc4bdb commit ce6b433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
key.append_key_part(i->first.data(), i->first.size());
key.append_key_part(j->data(), j->size());
ret = provider().append_key(ws_handle_, key);
Expand Down

0 comments on commit ce6b433

Please sign in to comment.