mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
allow in-memory persistence for gateway (#13694)
NAS gateway would persist however with or without etcd as before.
This commit is contained in:
@@ -151,7 +151,13 @@ func (sys *IAMSys) initStore(objAPI ObjectLayer, etcdClient *etcd.Client) {
|
||||
|
||||
if etcdClient == nil {
|
||||
if globalIsGateway {
|
||||
sys.store = &IAMStoreSys{newIAMDummyStore(sys.usersSysType)}
|
||||
if globalGatewayName == NASBackendGateway {
|
||||
sys.store = &IAMStoreSys{newIAMObjectStore(objAPI, sys.usersSysType)}
|
||||
} else {
|
||||
sys.store = &IAMStoreSys{newIAMDummyStore(sys.usersSysType)}
|
||||
logger.Info("WARNING: %s gateway is running in-memory IAM store, for persistence please configure etcd",
|
||||
globalGatewayName)
|
||||
}
|
||||
} else {
|
||||
sys.store = &IAMStoreSys{newIAMObjectStore(objAPI, sys.usersSysType)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user