You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it isn't clear how this should work for a transaction when you're using (and possibly interleaving) multiple databases. TransactionManager.managerFor is marked as internal, so this doesn't work:
Is there a better way to handle this? Should we provide an overload of inTopLevelTransaction that accepts a Database instead of a TransactionManager? Or do we need to create a new TransactionManager for each inTopLevelTransaction?
The text was updated successfully, but these errors were encountered:
When requiring a new transaction (and the caller may already be in a transaction) with a single database seems to work with:
inTopLevelTransaction( isolationLevel, repetitionAttempts, null, statement )
However, it isn't clear how this should work for a transaction when you're using (and possibly interleaving) multiple databases.
TransactionManager.managerFor
is marked asinternal
, so this doesn't work:inTopLevelTransaction( isolationLevel, repetitionAttempts, TransactionManager.managerFor(database), statement )
Is there a better way to handle this? Should we provide an overload of
inTopLevelTransaction
that accepts aDatabase
instead of aTransactionManager
? Or do we need to create a newTransactionManager
for eachinTopLevelTransaction
?The text was updated successfully, but these errors were encountered: