mirror of
https://github.com/minio/minio.git
synced 2026-11-24 07:18:49 +00:00
heal: Refactor heal command. (#2901)
- return errors for heal operation through rpc replies. - implement rotating wheel for healing status. Fixes #2491
This commit is contained in:
1 parent
18be3bc95a
commit
f22862aa28
20 files changed
+619
-244
No files matched your search
@@ -73,9 +73,10 @@ func initRemoteControlClients(srvCmdConfig serverCmdConfig) []*AuthRPCClient {
|
||||
// operations on server.
|
||||
type controlAPIHandlers struct {
|
||||
ObjectAPI func() ObjectLayer
|
||||
StorageDisks []StorageAPI
|
||||
IsXL bool
|
||||
RemoteControls []*AuthRPCClient
|
||||
LocalNode string
|
||||
StorageDisks []StorageAPI
|
||||
}
|
||||
|
||||
// Register control RPC handlers.
|
||||
@@ -83,6 +84,7 @@ func registerControlRPCRouter(mux *router.Router, srvCmdConfig serverCmdConfig)
|
||||
// Initialize Control.
|
||||
ctrlHandlers := &controlAPIHandlers{
|
||||
ObjectAPI: newObjectLayerFn,
|
||||
IsXL: srvCmdConfig.isDistXL || len(srvCmdConfig.storageDisks) > 1,
|
||||
RemoteControls: initRemoteControlClients(srvCmdConfig),
|
||||
LocalNode: getLocalAddress(srvCmdConfig),
|
||||
StorageDisks: srvCmdConfig.storageDisks,
|
||||
|
||||
Reference in new issue
Block a user