mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-10-11 19:42:43 +00:00
Currently there are 3 distinct operations performed by datastore - Pushing the data to the store - Updating the Index of the local object - Updating the cache (in case of localscope) Without a lock racing datastore api calls can interleave in various surprising ways. Best thing is to keep these 3 above operation inseparable. Use a datastore lock to achieve this. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>