Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 592 for make (0.14 sec)

  1. callbacks/associations.go

    								}
    							}
    						}
    					}
    				}
    
    				switch db.Statement.ReflectValue.Kind() {
    				case reflect.Slice, reflect.Array:
    					var (
    						rValLen   = db.Statement.ReflectValue.Len()
    						objs      = make([]reflect.Value, 0, rValLen)
    						fieldType = rel.Field.FieldType
    						isPtr     = fieldType.Kind() == reflect.Ptr
    					)
    
    					if !isPtr {
    						fieldType = reflect.PtrTo(fieldType)
    					}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 03:06:13 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. cmd/format-erasure_test.go

    	formatHashes := make([]string, len(formats))
    	for i, format := range formats {
    		if format == nil {
    			continue
    		}
    		h := sha256.New()
    		for _, set := range format.Erasure.Sets {
    			for _, diskID := range set {
    				h.Write([]byte(diskID))
    			}
    		}
    		formatHashes[i] = hex.EncodeToString(h.Sum(nil))
    	}
    
    	formatCountMap := make(map[string]int)
    	for _, hash := range formatHashes {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    	bucketStats := make(map[string][]srBucketMetaInfo)
    	policyStats := make(map[string][]srPolicy)
    	userPolicyStats := make(map[string][]srPolicyMapping)
    	groupPolicyStats := make(map[string][]srPolicyMapping)
    	userInfoStats := make(map[string][]srUserInfo)
    	groupDescStats := make(map[string][]srGroupDesc)
    	ilmExpiryRuleStats := make(map[string][]srILMExpiryRule)
    
    	numSites := len(sris)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  4. cmd/namespace-lock_test.go

    		// not be required but makes reproduction much easier.
    		nsLk.lockMapMutex.Lock()
    
    		// lk3 blocks.
    		lk3ch := make(chan bool)
    		go func() {
    			lk3ch <- nsLk.lock(ctx, "volume", "path", "source", "opsID", false, 0)
    		}()
    
    		// lk4, blocks.
    		lk4ch := make(chan bool)
    		go func() {
    			lk4ch <- nsLk.lock(ctx, "volume", "path", "source", "opsID", false, 0)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  5. cmd/peer-rest-client.go

    	if !globalIsDistErasure {
    		// Only useful in distributed setups
    		return nil, nil
    	}
    
    	hosts := endpoints.hostsSorted()
    	remote = make([]*peerRESTClient, 0, len(hosts))
    	all = make([]*peerRESTClient, len(hosts))
    	for i, host := range hosts {
    		if host == nil {
    			continue
    		}
    		all[i] = newPeerRESTClient(host, endpoints.FindGridHostsFromPeer(host))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  6. cmd/erasure-healing-common_test.go

    		deletePart
    		corruptPart
    	)
    
    	timeSentinel := time.Unix(1, 0).UTC()
    	threeNanoSecs := time.Unix(3, 0).UTC()
    	fourNanoSecs := time.Unix(4, 0).UTC()
    	modTimesThreeNone := make([]time.Time, 16)
    	modTimesThreeFour := make([]time.Time, 16)
    	for i := 0; i < 16; i++ {
    		// Have 13 good xl.meta, 12 for default parity count = 4 (EC:4) and one
    		// to be tampered with.
    		if i > 12 {
    			modTimesThreeFour[i] = fourNanoSecs
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  7. cmd/bucket-replication.go

    	}
    	pool := &ReplicationPool{
    		workers:         make([]chan ReplicationWorkerOperation, 0, workers),
    		lrgworkers:      make([]chan ReplicationWorkerOperation, 0, LargeWorkerCount),
    		mrfReplicaCh:    make(chan ReplicationWorkerOperation, 100000),
    		mrfWorkerKillCh: make(chan struct{}, failedWorkers),
    		resyncer:        newresyncer(),
    		mrfSaveCh:       make(chan MRFReplicateEntry, 100000),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  8. cmd/erasure-metadata.go

    func listObjectParities(partsMetadata []FileInfo, errs []error) (parities []int) {
    	parities = make([]int, len(partsMetadata))
    	for index, metadata := range partsMetadata {
    		if errs[index] != nil {
    			parities[index] = -1
    			continue
    		}
    		if !metadata.IsValid() {
    			parities[index] = -1
    			continue
    		}
    		// Delete marker or zero byte objects take highest parity.
    		if metadata.Deleted || metadata.Size == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  9. operator/cmd/mesh/profile-dump.go

    	switch v := obj.(type) {
    	case map[string]any:
    		accum := make([]string, 0)
    		for key, vv := range v {
    			childwalk, err := walk(fmt.Sprintf("%s%s%s", path, separator, pathComponent(key)), ".", vv)
    			if err != nil {
    				return accum, err
    			}
    			accum = append(accum, childwalk...)
    		}
    		return accum, nil
    	case []any:
    		accum := make([]string, 0)
    		for idx, vv := range v {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  10. cmd/format-erasure.go

    	newFormats := make([][]*formatErasureV3, setCount)
    	for i := range refFormat.Erasure.Sets {
    		newFormats[i] = make([]*formatErasureV3, setDriveCount)
    	}
    	currentDisksInfo := make([][]DiskInfo, setCount)
    	for i := range refFormat.Erasure.Sets {
    		currentDisksInfo[i] = make([]DiskInfo, setDriveCount)
    	}
    	for i := range refFormat.Erasure.Sets {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
Back to top