Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem with terminating inner transactions
PlaceboTransaction was not getting a KernelTransaction, it was getting a Supplier<KernelTransaction>, which would return the currently thread bound transaction. This works well in most cases, since transactions are thread bound and should not be used from other threads. When using terminate() though, the caller is almost always from a different thread, and in these situations we can't use a supplier.
- Loading branch information
Showing
2 changed files
with
96 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters