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

allowing application to set transaction as PA unsafe

Resetting pa_unsafe flag after fragment certification. If the flag is not reset,
it would remain in effect until the end of the transaction. However, the PA safety
should be inspected only during fragment applying time.
This commit is contained in:
sjaakola
2021-05-19 12:40:22 +03:00
parent 608ee82b26
commit 8884de3503

View File

@ -1618,6 +1618,7 @@ int wsrep::transaction::certify_fragment(
assert(state_ == s_certifying);
state(lock, s_executing);
flags(flags() & ~wsrep::provider::flag::start_transaction);
flags(flags() & ~wsrep::provider::flag::pa_unsafe);
}
return ret;
}