Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsRebalanceStarted (0.14 sec)

  1. cmd/admin-handlers-pools.go

    		return
    	}
    
    	if z.IsDecommissionRunning() {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errDecommissionAlreadyRunning), r.URL)
    		return
    	}
    
    	if z.IsRebalanceStarted() {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminRebalanceAlreadyStarted), r.URL)
    		return
    	}
    
    	vars := mux.Vars(r)
    	v := vars["pool"]
    	byID := vars["by-id"] == "true"
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 00:22:30 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-rebalance.go

    }
    
    func (r *rebalanceMeta) save(ctx context.Context, store objectIO) error {
    	return r.saveWithOpts(ctx, store, ObjectOptions{})
    }
    
    func (z *erasureServerPools) IsRebalanceStarted() bool {
    	z.rebalMu.RLock()
    	defer z.rebalMu.RUnlock()
    
    	r := z.rebalMeta
    	if r == nil {
    		return false
    	}
    	if !r.StoppedAt.IsZero() {
    		return false
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
Back to top