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