-
- Downloads
WIP: Hold the proper locks while examining the list of databases.
Introduce a new lock called specMu lock to protect the cluster spec. This lock is held on update and sync, and when retrieving the spec in the API code. There is no need to acquire it for cluster creation and deletion: creation assigns the spec to the cluster before linking it to the controller, and deletion just removes the cluster from the list in the controller, both holding the global clustersMu Lock.
Showing
- pkg/apiserver/apiserver.go 2 additions, 2 deletionspkg/apiserver/apiserver.go
- pkg/cluster/cluster.go 3 additions, 2 deletionspkg/cluster/cluster.go
- pkg/cluster/sync.go 1 addition, 1 deletionpkg/cluster/sync.go
- pkg/cluster/util.go 32 additions, 1 deletionpkg/cluster/util.go
- pkg/controller/status.go 11 additions, 3 deletionspkg/controller/status.go
Loading
Please sign in to comment