mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Signal stop-rebalance to all rebalancing pools (#16438)
This commit is contained in:
committed by
GitHub
parent
5c1a4ba5f9
commit
71c95ad0d0
@@ -649,6 +649,15 @@ func (sys *NotificationSys) StopRebalance(ctx context.Context) {
|
||||
logger.LogIf(logger.SetReqInfo(ctx, reqInfo), nErr.Err)
|
||||
}
|
||||
}
|
||||
|
||||
objAPI := newObjectLayerFn()
|
||||
if objAPI == nil {
|
||||
logger.LogIf(ctx, errServerNotInitialized)
|
||||
return
|
||||
}
|
||||
if pools, ok := objAPI.(*erasureServerPools); ok {
|
||||
pools.StopRebalance()
|
||||
}
|
||||
}
|
||||
|
||||
// LoadRebalanceMeta notifies all peers to load rebalance.bin from object layer.
|
||||
|
||||
Reference in New Issue
Block a user