microsoft / FASTER

Fast persistent recoverable log and key-value store + cache, in C# and C++.
https://aka.ms/FASTER
MIT License
6.29k stars 563 forks source link

Fix retry logic in LockableContext when trying to acquire a lock #889

Closed yangmsft closed 10 months ago

yangmsft commented 10 months ago

Currently when executing TryLock(), LockableContext fails on first lock acquisition failure and ignores retry attempts/timeouts/cancellation tokens. This PR fixes the behavior by respecting that.