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:
@ -33,8 +33,8 @@ namespace wsrep
|
|||||||
enum type
|
enum type
|
||||||
{
|
{
|
||||||
shared,
|
shared,
|
||||||
semi_shared,
|
reference,
|
||||||
semi_exclusive,
|
update,
|
||||||
exclusive
|
exclusive
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Submodule wsrep-API/v26 updated: 57cde3a1f1...f0239371ca
Reference in New Issue
Block a user