commit d755f7248d324bb4c44b3efc9d200f8eb075066d
Author: Pavel Bondar <email address hidden>
Date: Tue Oct 20 19:11:30 2015 +0300
Use compare-and-swap for IpamAvailabilityRange
Existing locking mechanism 'select for update' causes
deadlocks with galera multi-writers.
Replaced locking rows with compare-and-swap approach.
Compare-and-swap verifies that row is not changed by
another thread before updating/deleting it.
Filter-and-update and filter-and-delete are used.
They return count of affected rows.
If count of affected row is less than expected,
then another thread already changed our row
and RetryRequest is raised.
Reviewed: https:/ /review. openstack. org/223123 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d755f7248d3 24bb4c44b3efc9d 200f8eb075066d
Committed: https:/
Submitter: Jenkins
Branch: master
commit d755f7248d324bb 4c44b3efc9d200f 8eb075066d
Author: Pavel Bondar <email address hidden>
Date: Tue Oct 20 19:11:30 2015 +0300
Use compare-and-swap for IpamAvailabilit yRange
Existing locking mechanism 'select for update' causes
deadlocks with galera multi-writers.
Replaced locking rows with compare-and-swap approach.
Compare- and-swap verifies that row is not changed by and-update and filter-and-delete are used.
another thread before updating/deleting it.
Filter-
They return count of affected rows.
If count of affected row is less than expected,
then another thread already changed our row
and RetryRequest is raised.
Change-Id: I514cae0fa43033 433ec2982bcf372 6e02e6692bf
Closes-Bug: #1494351