mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Initial replicating side implementation of streaming replication
This commit is contained in:
@ -129,6 +129,7 @@ namespace wsrep
|
||||
int flags_;
|
||||
};
|
||||
|
||||
|
||||
// Abstract interface for provider implementations
|
||||
class provider
|
||||
{
|
||||
@ -284,6 +285,22 @@ namespace wsrep
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline bool starts_transaction(int flags)
|
||||
{
|
||||
return (flags & wsrep::provider::flag::start_transaction);
|
||||
}
|
||||
|
||||
static inline bool commits_transaction(int flags)
|
||||
{
|
||||
return (flags & wsrep::provider::flag::commit);
|
||||
}
|
||||
|
||||
static inline bool rolls_back_transaction(int flags)
|
||||
{
|
||||
return (flags & wsrep::provider::flag::rollback);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // WSREP_PROVIDER_HPP
|
||||
|
Reference in New Issue
Block a user