Rakshith R 16c6ba8bc4 cephfs: safeguard localClusterState struct from race conditions
Multiple go-routines may simultaneously check for a clusterID's
presence in clusterAdditionalInfo and create an entry if it is
absent. This set of operation needs to be serialized.

Therefore, this commit safeguards clusterAdditionalInfo map
from concurrent writes with a mutex to prevent the above problem.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 82f1323af48512b4201b2ca973ac9063eb24b8bf)
2023-10-11 11:38:45 +05:30
..
2023-06-05 04:49:46 +00:00
2023-06-05 04:49:46 +00:00
2023-08-30 11:16:27 +02:00
2023-06-05 04:49:46 +00:00