andymccurdy/redis-py — pull request #479 by fermayo (2014-05-15 04:09:58+00:00)
Title: Release locks that haven't expired regardless of the exact expiration timestamp

When deciding wether to delete the lock or not on `release()`, we should compare it to the current time, not the stored expiration time, which could be different (a bit ahead, or a bit behind) in Redis.