mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-06-04 09:02:12 +03:00
Phase out the use of WSREP_KEY_SHARED key type in favour of WSREP_KEY_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:🔑:shared to wsrep:🔑:reference. Refs codership/wsrep-lib#227
This commit is contained in:
parent
dfc4bdb8a5
commit
ce6b433818
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user