Skip to content

Commit 8884de3

Browse files
committed
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.
1 parent 608ee82 commit 8884de3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transaction.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,7 @@ int wsrep::transaction::certify_fragment(
16181618
assert(state_ == s_certifying);
16191619
state(lock, s_executing);
16201620
flags(flags() & ~wsrep::provider::flag::start_transaction);
1621+
flags(flags() & ~wsrep::provider::flag::pa_unsafe);
16211622
}
16221623
return ret;
16231624
}

0 commit comments

Comments
 (0)