Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for indexes (0.22 sec)

  1. cmd/endpoint-ellipses.go

    		return setCounts[i] < setCounts[j]
    	})
    
    	return setCounts
    }
    
    // getSetIndexes returns list of indexes which provides the set size
    // on each index, this function also determines the final set size
    // The final set size has the affinity towards choosing smaller
    // indexes (total sets)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  2. cmd/endpoint-ellipses_test.go

    			}
    			if !reflect.DeepEqual(testCase.indexes, gotIndexes) {
    				t.Errorf("Expected %v, got %v", testCase.indexes, gotIndexes)
    			}
    		})
    	}
    }
    
    // Test tests calculating set indexes.
    func TestGetSetIndexes(t *testing.T) {
    	testCases := []struct {
    		args       []string
    		totalSizes []uint64
    		indexes    [][]uint64
    		success    bool
    	}{
    		// Invalid inputs.
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 15.2K bytes
    - Viewed (0)
  3. cmd/storage-rest-client.go

    	endpoint   Endpoint
    	restClient *rest.Client
    	gridConn   *grid.Subroute
    	diskID     atomic.Pointer[string]
    
    	diskInfoCache *cachevalue.Cache[DiskInfo]
    }
    
    // Retrieve location indexes.
    func (client *storageRESTClient) GetDiskLoc() (poolIdx, setIdx, diskIdx int) {
    	return client.endpoint.PoolIdx, client.endpoint.SetIdx, client.endpoint.DiskIdx
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  4. index.yaml

    Harshavardhana <******@****.***> 1714299277 -0700
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 10:14:37 GMT 2024
    - 53.9K bytes
    - Viewed (0)
  5. internal/config/lambda/event/targetlist.go

    }
    
    // TargetStat is the stats of a single target.
    type TargetStat struct {
    	ID             TargetID
    	ActiveRequests int64
    	TotalRequests  int64
    	FailedRequests int64
    }
    
    // TargetList - holds list of targets indexed by target ID.
    type TargetList struct {
    	sync.RWMutex
    	targets map[TargetID]Target
    }
    
    // Add - adds unique target to target list.
    func (list *TargetList) Add(targets ...Target) error {
    	list.Lock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  6. cmd/object-multipart-handlers.go

    		if err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    		if dstOpts.IndexCB != nil {
    			dstOpts.IndexCB = compressionIndexEncrypter(objectEncryptionKey, dstOpts.IndexCB)
    		}
    	}
    
    	srcInfo.PutObjReader = pReader
    	copyObjectPart := objectAPI.CopyObjectPart
    
    	// Copy source object to destination, if source and destination
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  7. cmd/object-handlers.go

    			if err != nil {
    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return
    			}
    			if dstOpts.IndexCB != nil {
    				dstOpts.IndexCB = compressionIndexEncrypter(objEncKey, dstOpts.IndexCB)
    			}
    		}
    	}
    
    	srcInfo.PutObjReader = pReader
    
    	srcInfo.UserDefined, err = getCpObjMetadataFromHeader(ctx, r, srcInfo.UserDefined)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-rebalance.go

    				part.Number,
    				NewPutObjReader(hr),
    				ObjectOptions{
    					PreserveETag: part.ETag, // Preserve original ETag to ensure same metadata.
    					IndexCB: func() []byte {
    						return part.Index // Preserve part Index to ensure decompression works.
    					},
    					NoAuditLog: true,
    				})
    			if err != nil {
    				return fmt.Errorf("rebalanceObject: PutObjectPart() %w", err)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    			fi := metadata[index]
    			// Assign index when index is initialized
    			if fi.Erasure.Index == 0 {
    				fi.Erasure.Index = index + 1
    			}
    
    			if !fi.IsValid() {
    				return errFileCorrupt
    			}
    			resp, err := disks[index].RenameData(ctx, srcBucket, srcEntry, fi, dstBucket, dstEntry, RenameOptions{})
    			if err != nil {
    				return err
    			}
    			diskVersions[index] = resp.Sign
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  10. cmd/storage-interface.go

    	// Read all.
    	ReadAll(ctx context.Context, volume string, path string) (buf []byte, err error)
    	GetDiskLoc() (poolIdx, setIdx, diskIdx int) // Retrieve location indexes.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
Back to top