ceph-csi/internal/cephfs
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 82f1323af4)
2023-10-11 11:38:45 +05:30
..
core cephfs: safeguard localClusterState struct from race conditions 2023-10-11 11:38:45 +05:30
errors cleanup: move core functions to core pkg 2021-09-23 06:39:37 +00:00
mounter build: address nolintlint errors from new golangci-lint 2023-06-05 04:49:46 +00:00
store build: address gofmt warnings 2023-06-05 04:49:46 +00:00
util cephfs: fix make go-lint error 2023-08-30 11:16:40 +02:00
controllerserver.go build: address gofmt warnings 2023-06-05 04:49:46 +00:00
driver.go cephfs: subvolumes honor --setmetadata option 2022-08-01 07:15:29 +00:00
fuserecovery.go build: address gofmt warnings 2023-06-05 04:49:46 +00:00
identityserver.go ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
nodeserver.go cephfs: add mountOptions during NodeStage call 2023-06-19 09:51:40 +00:00
validator.go cephfs: correct comment for validateExpandVolumeRequest 2021-09-07 14:33:02 +00:00