-
Notifications
You must be signed in to change notification settings - Fork 203
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
EZP-29899: Content loading can end up loading wrong version under concurrency #2502
Conversation
…currency Under concurrency it's possible that current version number we get in content info is out of date by the time we ask for full content object. So change SPI to allow loading current version number directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes perfect sense, some nitpicks:
|
||
return $statement->fetchAll(\PDO::FETCH_ASSOC); | ||
return $list[0];*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead code detected 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed :)
Co-Authored-By: andrerom <andre.romcke@gmail.com>
Co-Authored-By: andrerom <andre.romcke@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sanity tests passed
5.4
and upUnder concurrency it's possible that current version number we get in content info
is out of date by the time we ask for full content object. So change
SPI to allow loading current version number directly.
TODO:
$ composer fix-cs
).