Closed lcabancla closed 3 years ago
@kapilsingh5050 Thanks for the approval. Added a test. I don't have write access to merge. Also, I am not familiar with the process of releasing a version. Do you know how to do that?
I also don't have access to merge these PRs. I'm also not familiar with the release process. @KasulaVamsi Can you check if you have permissions to merge?
Issue #, if available: https://github.com/awslabs/amazon-dynamodb-lock-client/issues/56
Description of changes:
Add a reentrant option for acquireLock(). With this set to true, the lock client will check first if it already owns the lock. If it already owns the lock and the lock is not expired, it will return the lock immediately. If this is set to false and the client already owns the lock, the call to acquireLock will block.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.