Skip to content
Snippets Groups Projects
Commit bf1675eb authored by Sean Young's avatar Sean Young
Browse files

Fix locking issues in state cache


In GetStorage() and get(), avoid potential concurrent duplicate backend
calls for the same entry by taking a write lock. This does increase
the time the cache is write locked.

Also avoid leaving the cache locked in early exit from the iterate
functions.

Signed-off-by: default avatarSean Young <sean.young@monax.io>
parent 3f18d589
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment