mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Enhanced newObjectLayerFn (#3837)
This commit is contained in:
@@ -38,14 +38,14 @@ const (
|
||||
)
|
||||
|
||||
// Global object layer mutex, used for safely updating object layer.
|
||||
var globalObjLayerMutex *sync.Mutex
|
||||
var globalObjLayerMutex *sync.RWMutex
|
||||
|
||||
// Global object layer, only accessed by newObjectLayerFn().
|
||||
var globalObjectAPI ObjectLayer
|
||||
|
||||
func init() {
|
||||
// Initialize this once per server initialization.
|
||||
globalObjLayerMutex = &sync.Mutex{}
|
||||
globalObjLayerMutex = &sync.RWMutex{}
|
||||
}
|
||||
|
||||
// Check if the disk is remote.
|
||||
|
||||
Reference in New Issue
Block a user