mirror of
https://github.com/pgsty/minio.git
synced 2026-03-16 17:53:43 +01:00
avoid reload of 'format.json' over the network under normal conditions (#18842)
This commit is contained in:
@@ -1390,6 +1390,8 @@ func registerStorageRESTHandlers(router *mux.Router, endpointServerPools Endpoin
|
||||
}
|
||||
storage := newXLStorageDiskIDCheck(xl, true)
|
||||
storage.SetDiskID(xl.diskID)
|
||||
// We do not have to do SetFormatData() since 'xl'
|
||||
// already captures formatData cached.
|
||||
|
||||
globalLocalDrivesMu.Lock()
|
||||
defer globalLocalDrivesMu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user