Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getPoolIdx (0.05 sec)

  1. cmd/erasure-server-pool.go

    		}
    	}
    
    	return idx, nil
    }
    
    // getPoolIdx returns the found previous object and its corresponding pool idx,
    // if none are found falls back to most available space pool, this function is
    // designed to be only used by PutObject, CopyObject (newObject creation) and NewMultipartUpload.
    func (z *erasureServerPools) getPoolIdx(ctx context.Context, bucket, object string, size int64) (idx int, err error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-decom.go

    		z.poolMeta = newMeta
    		z.poolMetaMutex.Unlock()
    	}
    
    	pools := meta.returnResumablePools()
    	poolIndices := make([]int, 0, len(pools))
    	for _, pool := range pools {
    		idx := globalEndpoints.GetPoolIdx(pool.CmdLine)
    		if idx == -1 {
    			return fmt.Errorf("unexpected state present for decommission status pool(%s) not found", pool.CmdLine)
    		}
    		poolIndices = append(poolIndices, idx)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top