mirror of
https://github.com/minio/minio.git
synced 2026-11-05 08:30:17 +00:00
remove safeMode behavior in startup (#10645)
In almost all scenarios MinIO now is mostly ready for all sub-systems independently, safe-mode is not useful anymore and do not serve its original intended purpose. allow server to be fully functional even with config partially configured, this is to cater for availability of actual I/O v/s manually fixing the server. In k8s like environments it will never make sense to take pod into safe-mode state, because there is no real access to perform any remote operation on them.
This commit is contained in:
1 parent
1738eb24b1
commit
a0d0645128
27 files changed
+139
-268
No files matched your search
@@ -86,6 +86,10 @@ func (list *TargetList) Remove(targetIDSet TargetIDSet) {
|
||||
|
||||
// Targets - list all targets
|
||||
func (list *TargetList) Targets() []Target {
|
||||
if list == nil {
|
||||
return []Target{}
|
||||
}
|
||||
|
||||
list.RLock()
|
||||
defer list.RUnlock()
|
||||
|
||||
|
||||
Reference in new issue
Block a user