Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid possible infinite loops on APCu eviction
If we are unlucky with an APCu eviction at the wrong moment, and no other thread writing to the same metric, we can get stuck in an infinite loop where apcu_fetch will always return false. Fix by applying the same strategy as if apcu_fetch was false in the first place (before doing compare-and-swap) Signed-off-by: Tobias Bengtsson <[email protected]>
- Loading branch information