mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Added is_empty() method to transaction class
Method is_empty() can be determined if there have no been changes to the transaction.
This commit is contained in:
@ -98,6 +98,14 @@ namespace wsrep
|
||||
return (streaming_context_.fragments_certified() > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if transaction has not generated any changes.
|
||||
*/
|
||||
bool is_empty() const
|
||||
{
|
||||
return sr_keys_.empty();
|
||||
}
|
||||
|
||||
bool pa_unsafe() const { return pa_unsafe_; }
|
||||
void pa_unsafe(bool pa_unsafe) { pa_unsafe_ = pa_unsafe; }
|
||||
|
||||
|
Reference in New Issue
Block a user