1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-14 15:02:27 +03:00

Support for UPDATE certification key type.

This commit is contained in:
Alexey Yurchenko
2018-11-25 14:31:16 +02:00
parent 36dbb37645
commit 05013c8d44
3 changed files with 6 additions and 8 deletions

View File

@ -33,8 +33,8 @@ namespace wsrep
enum type enum type
{ {
shared, shared,
semi_shared, reference,
semi_exclusive, update,
exclusive exclusive
}; };

View File

@ -73,13 +73,11 @@ namespace
switch (type) switch (type)
{ {
case wsrep::key::shared: return WSREP_KEY_SHARED; case wsrep::key::shared: return WSREP_KEY_SHARED;
case wsrep::key::semi_shared: return WSREP_KEY_SEMI; case wsrep::key::reference: return WSREP_KEY_REFERENCE;
case wsrep::key::semi_exclusive: case wsrep::key::update: return WSREP_KEY_UPDATE;
/** @todo Implement semi exclusive in API */
assert(0);
return WSREP_KEY_EXCLUSIVE;
case wsrep::key::exclusive: return WSREP_KEY_EXCLUSIVE; case wsrep::key::exclusive: return WSREP_KEY_EXCLUSIVE;
} }
assert(0);
throw wsrep::runtime_error("Invalid key type"); throw wsrep::runtime_error("Invalid key type");
} }