Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getLocalBackgroundHealStatus (0.26 sec)

  1. cmd/global-heal.go

    		healedItemsMap:     make(map[madmin.HealItemType]int64),
    		healFailedItemsMap: make(map[string]int64),
    	}
    }
    
    // getLocalBackgroundHealStatus will return the heal status of the local node
    func getLocalBackgroundHealStatus(ctx context.Context, o ObjectLayer) (madmin.BgHealState, bool) {
    	if globalBackgroundHealState == nil {
    		return madmin.BgHealState{}, false
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. cmd/peer-rest-server.go

    	wg.Wait()
    	return nil
    }
    
    func (s *peerRESTServer) BackgroundHealStatusHandler(_ *grid.MSS) (*grid.JSON[madmin.BgHealState], *grid.RemoteErr) {
    	state, ok := getLocalBackgroundHealStatus(context.Background(), newObjectLayerFn())
    	if !ok {
    		return nil, grid.NewRemoteErr(errServerNotInitialized)
    	}
    	return madminBgHealState.NewJSONWith(&state), nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    // If no ObjectLayer is provided no set status is returned.
    func getAggregatedBackgroundHealState(ctx context.Context, o ObjectLayer) (madmin.BgHealState, error) {
    	// Get local heal status first
    	bgHealStates, ok := getLocalBackgroundHealStatus(ctx, o)
    	if !ok {
    		return bgHealStates, errServerNotInitialized
    	}
    
    	if globalIsDistErasure {
    		// Get heal status from other peers
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
Back to top