1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Pass certification keys also for NBO end.

Certification keys are needed for NBO end to resolve dependencies
for the write sets which follow NBO end. Without keys the following
write sets do not detect dependency to NBO event and may start applying
too early.
This commit is contained in:
Teemu Ollakka
2019-09-06 11:57:56 +03:00
parent 58cea10577
commit 3a1b194741
5 changed files with 34 additions and 5 deletions

View File

@ -27,6 +27,10 @@
namespace wsrep
{
/** @class key
*
* Certification key type.
*/
class key
{
public:
@ -44,6 +48,14 @@ namespace wsrep
, key_parts_len_()
{ }
/**
* Append key part to key.
*
* @param ptr Pointer to key part data. The caller is supposed to take
* care that the pointer remains valid over the lifetime
* if the key object.
* @param len Length of the key part data.
*/
void append_key_part(const void* ptr, size_t len)
{
if (key_parts_len_ == 3)