diff options
author | wil paredes <code@dystedium.com> | 2014-06-05 15:47:11 -0700 |
---|---|---|
committer | wil paredes <code@dystedium.com> | 2014-06-05 15:47:11 -0700 |
commit | 643d76d9af708f3dc5718be16b72f8a911e26d4f (patch) | |
tree | d83325f032431b04392252cc932923b94e143418 /redis/utils.py | |
parent | e7589d76a20b577bbc65fbfcdb270435b24af444 (diff) | |
download | redis-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