Skip to content

Drop TransactionalMutex class#73

Merged
mvorisek merged 2 commits intomasterfrom
drop_transaction_mutex
Dec 9, 2024
Merged

Drop TransactionalMutex class#73
mvorisek merged 2 commits intomasterfrom
drop_transaction_mutex

Conversation

@mvorisek
Copy link
Member

@mvorisek mvorisek commented Dec 9, 2024

This was not really an exclusive lock mutex.

BC break: TransactionalMutex class was removed

Use doctrine/dbal[1] or atk4/data[2] implementations to execute a callback wrapped in transaction. Of course, you can mimic these using standard \PDO beginTransaction/commit/rollback interface.

[1] https://github.com/doctrine/dbal/blob/v2.10.1/lib/Doctrine/DBAL/Connection.php#L1170
[2] https://github.com/atk4/data/blob/5.2.0/src/Persistence/Sql/Connection.php#L335

@mvorisek mvorisek marked this pull request as ready for review December 9, 2024 11:43
@mvorisek mvorisek merged commit df6a8f6 into master Dec 9, 2024
@mvorisek mvorisek deleted the drop_transaction_mutex branch December 9, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant