1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Add prepare flag to wsrep::provider::flag

This commit is contained in:
Daniele Sciascia
2018-10-24 09:23:36 +02:00
committed by Teemu Ollakka
parent cf434f3da5
commit ed7c4d7410
3 changed files with 37 additions and 9 deletions

View File

@ -217,7 +217,8 @@ namespace wsrep
static const int pa_unsafe = (1 << 4);
static const int commutative = (1 << 5);
static const int native = (1 << 6);
static const int snapshot = (1 << 7);
static const int prepare = (1 << 7);
static const int snapshot = (1 << 8);
};
/**
@ -378,6 +379,11 @@ namespace wsrep
return (flags & wsrep::provider::flag::rollback);
}
static inline bool prepares_transaction(int flags)
{
return (flags & wsrep::provider::flag::prepare);
}
static inline bool is_toi(int flags)
{
return (flags & wsrep::provider::flag::isolation);