1
0
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:
Teemu Ollakka
2018-06-12 15:44:20 +03:00
parent d9d41a4787
commit 0186342092
7 changed files with 243 additions and 41 deletions

View File

@ -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