SanityManager.THROWASSERT("Nested transaction active!");
}
}
// now commit the Store transaction
TransactionController tc = getTransactionExecute();
if ( tc != null && commitStore )
{
if (sync)
{
if (commitflag == NON_XA)
{
// regular commit
tc.commit();
}
else
{
// This may be a xa_commit, check overloaded commitflag.
if (SanityManager.DEBUG)
SanityManager.ASSERT(commitflag == XA_ONE_PHASE ||
commitflag == XA_TWO_PHASE,
"invalid commit flag");
((XATransactionController)tc).xa_commit(commitflag == XA_ONE_PHASE);
}
}
else
{
tc.commitNoSync(commitflag);
}
// reset the savepoints to the new
// location, since any outer nesting
// levels expect there to be a savepoint