From ce6b433818b7aef8408838d632b25857c43b6d98 Mon Sep 17 00:00:00 2001 From: Alexey Yurchenko Date: Mon, 1 Apr 2024 13:24:26 +0300 Subject: [PATCH] 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::key::shared to wsrep::key::reference. Refs codership/wsrep-lib#227 --- src/transaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction.cpp b/src/transaction.cpp index 7d9e31e6..61820c6e 100644 --- a/src/transaction.cpp +++ b/src/transaction.cpp @@ -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);