This avoids having to set a watch and retry if someone else beats us to
the punch; the retry is less efficient than doing it with Lua, and would
require adding a backoff sleep to avoid lots of failed requests under
high concurrency.
This patch also adds a Redis server version check in the driver since
Lua requires redis-server >= 2.6
Reviewed: https:/ /review. openstack. org/123230 /git.openstack. org/cgit/ openstack/ zaqar/commit/ ?id=72598b23891 ce4c9e9c5583e81 77d99be0f56eb4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 72598b23891ce4c 9e9c5583e8177d9 9be0f56eb4
Author: kgriffs <email address hidden>
Date: Mon Sep 22 14:27:38 2014 -0500
Move Redis driver's claim transaction to Lua
This avoids having to set a watch and retry if someone else beats us to
the punch; the retry is less efficient than doing it with Lua, and would
require adding a backoff sleep to avoid lots of failed requests under
high concurrency.
This patch also adds a Redis server version check in the driver since
Lua requires redis-server >= 2.6
Change-Id: I0c34e267a63589 65a54179a4b2fd0 3ac15b194e9
Closes-Bug: #1372510