mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
initialize IAM after etcd has initialized (#10819)
This commit is contained in:
parent
ad382799b1
commit
8c76e1353e
@ -206,9 +206,6 @@ func initServer(ctx context.Context, newObject ObjectLayer) error {
|
|||||||
globalObjectAPI = newObject
|
globalObjectAPI = newObject
|
||||||
globalObjLayerMutex.Unlock()
|
globalObjLayerMutex.Unlock()
|
||||||
|
|
||||||
// Initialize IAM store
|
|
||||||
globalIAMSys.InitStore(newObject)
|
|
||||||
|
|
||||||
// Make sure to hold lock for entire migration to avoid
|
// Make sure to hold lock for entire migration to avoid
|
||||||
// such that only one server should migrate the entire config
|
// such that only one server should migrate the entire config
|
||||||
// at a given time, this big transaction lock ensures this
|
// at a given time, this big transaction lock ensures this
|
||||||
@ -342,6 +339,9 @@ func initAllSubsystems(ctx context.Context, newObject ObjectLayer) (err error) {
|
|||||||
logger.LogIf(ctx, fmt.Errorf("Unable to initialize config, some features may be missing %w", err))
|
logger.LogIf(ctx, fmt.Errorf("Unable to initialize config, some features may be missing %w", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize IAM store
|
||||||
|
globalIAMSys.InitStore(newObject)
|
||||||
|
|
||||||
// Populate existing buckets to the etcd backend
|
// Populate existing buckets to the etcd backend
|
||||||
if globalDNSConfig != nil {
|
if globalDNSConfig != nil {
|
||||||
// Background this operation.
|
// Background this operation.
|
||||||
|
Loading…
Reference in New Issue
Block a user