Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetPoolIdx (0.33 sec)

  1. cmd/admin-handlers-pools.go

    			if err != nil {
    				// We didn't find any matching pools, invalid input
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    				return
    			}
    		} else {
    			idx = globalEndpoints.GetPoolIdx(pool)
    			if idx == -1 {
    				// We didn't find any matching pools, invalid input
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    				return
    			}
    		}
    		var pool *erasureSets
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  2. cmd/endpoint.go

    	for _, v := range nodesMap {
    		nodes = append(nodes, v)
    	}
    	sort.Slice(nodes, func(i, j int) bool {
    		return nodes[i].Host < nodes[j].Host
    	})
    	return
    }
    
    // GetPoolIdx return pool index
    func (l EndpointServerPools) GetPoolIdx(pool string) int {
    	for id, ep := range globalEndpoints {
    		if ep.CmdLine != pool {
    			continue
    		}
    		return id
    	}
    	return -1
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  3. 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) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  4. 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)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.3K bytes
    - Viewed (1)
Back to top