1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-13 04:01:32 +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
{
shared,
semi_shared,
semi_exclusive,
reference,
update,
exclusive
};

View File

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