Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.6] database queue transaction wrap #22433

Merged
merged 1 commit into from
Dec 14, 2017

Conversation

ph4r05
Copy link
Contributor

@ph4r05 ph4r05 commented Dec 14, 2017

As discussed in #22394 with @sisve and @deleugpn the transaction in DatabaseQueue::pop is wrapped in the transaction closure for better readability and simplicity.

This also enables to remove a side effect of DatabaseQueue::marshalJob committing the transaction which is nonintuitive and confusing - potential breaking change for third-party code - the reason for adding to 5.6.

- pop() transaction wrapped in closure for easier readability, removing side effect of marshalJob() which nonintuitively commits the transaction
@taylorotwell
Copy link
Member

I have a somewhat strong suspicion we are breaking things and making deadlock issues worse here but will give it a shot. 😄

@taylorotwell taylorotwell merged commit c38ee67 into laravel:master Dec 14, 2017
@deleugpn
Copy link
Contributor

Looks great.

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.

3 participants