Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Sep 2014 at 10:03 UTC
Updated:
29 Sep 2014 at 14:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pushpinderchauhan commentedPlease review.
Comment #2
joachim commentedLooks good! Thanks!
Comment #3
jhodgdonDoes this limit exist in Drupal 8 as well? There is a LocakBackendInterface::acquire() function that probably does the same thing?
Comment #4
jhodgdonComment #5
pushpinderchauhan commentedPatch for D8.
Comment #6
jhodgdonPatch looks fine to me. My only question is since this is going on the Interface documentation, whether the length limit only applies to some implementations or really does apply to the Interface. Moving to "base system" so the maintainers of the Lock system can comment. Meanwhile, marking RTBC...
Comment #7
joachim commentedThere is only one actual implementation of this interface in core that does anything, DatabaseLockBackend. That's what has this character limit.
If we say that the limit applies to the implementation, then we're watering down the purpose of the interface, which is to define the way this is used. So it makes sense to me to define the length limit on the interface. Otherwise, we're breaking the pluggable nature of the backends, as we could have ContribLockBackend that has either a longer or a shorter limit, and then a site changing its backend could find its locks don't work properly any more.
Comment #8
alexpottCommitted e8b5a65 and pushed to 8.0.x. Thanks!
Comment #10
jhodgdonThanks! Patch in #1 is RTBC for 7.x.
Comment #12
joachim commentedThe test failure is for the D8 patch. D7 patch is green.
Comment #13
jhodgdonCommitted patch in #1 to Drupal 7.x. Thanks again!