-
Notifications
You must be signed in to change notification settings - Fork 117
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
Atomic option locking #967
Merged
Merged
Commits on Jun 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b5c21ec - Browse repository at this point
Copy the full SHA b5c21ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 636e298 - Browse repository at this point
Copy the full SHA 636e298View commit details -
Check that lock was set, before proceeding to dispatch async request.
Note that we still check is_locked() because, although the option lock implementation has been updated in such a way that we can rely on just calling set(), we do not know that that is the active implementation.
Configuration menu - View commit details
-
Copy full SHA for d1a5342 - Browse repository at this point
Copy the full SHA d1a5342View commit details -
Configuration menu - View commit details
-
Copy full SHA for 530baa1 - Browse repository at this point
Copy the full SHA 530baa1View commit details
Commits on Jul 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 895e8d0 - Browse repository at this point
Copy the full SHA 895e8d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62f0d33 - Browse repository at this point
Copy the full SHA 62f0d33View commit details
Commits on Jul 7, 2023
-
Simplify insert, remove explicit check for existing entry.
At least as far back as WP 5.2 (the oldest version we support), the option_name column is defined as unique: therefore we can rely on MySQL to avoid duplicates. Of course, if the schema has been modified and the unique constraint removed, that would be problematic -- but it seems reasonable for us to assume that isn't the case.
Configuration menu - View commit details
-
Copy full SHA for b215f72 - Browse repository at this point
Copy the full SHA b215f72View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd2d81a - Browse repository at this point
Copy the full SHA bd2d81aView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.