summaryrefslogtreecommitdiff
path: root/redis/utils.py
diff options
context:
space:
mode:
authorwil paredes <code@dystedium.com>2014-06-05 15:47:11 -0700
committerwil paredes <code@dystedium.com>2014-06-05 15:47:11 -0700
commit643d76d9af708f3dc5718be16b72f8a911e26d4f (patch)
treed83325f032431b04392252cc932923b94e143418 /redis/utils.py
parente7589d76a20b577bbc65fbfcdb270435b24af444 (diff)
downloadredis-py-643d76d9af708f3dc5718be16b72f8a911e26d4f.tar.gz
Lock.release(): reorder code to avoid token overwrite
* assignment to self.token was not protected by the lock, so the value could get overwritten * do_release() now has an expected_token parameter that receives the old token value * NOTE: this only fixes the issue for locks that do not have timeouts
Diffstat (limited to 'redis/utils.py')
0 files changed, 0 insertions, 0 deletions