Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 597 for index (0.07 sec)

  1. src/encoding/json/encode.go

    				tag := sf.Tag.Get("json")
    				if tag == "-" {
    					continue
    				}
    				name, opts := parseTag(tag)
    				if !isValidTag(name) {
    					name = ""
    				}
    				index := make([]int, len(f.index)+1)
    				copy(index, f.index)
    				index[len(f.index)] = i
    
    				ft := sf.Type
    				if ft.Name() == "" && ft.Kind() == reflect.Pointer {
    					// Follow pointer.
    					ft = ft.Elem()
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  2. internal/dsync/drwmutex.go

    	if ok {
    		netLockCtx = context.WithValue(netLockCtx, mcontext.ContextTraceKey, tc)
    	}
    
    	for index, c := range restClnts {
    		wg.Add(1)
    		// broadcast lock request to all nodes
    		go func(index int, isReadLock bool, c NetLocker) {
    			defer wg.Done()
    
    			g := Granted{index: index}
    			if c == nil {
    				log("dsync: nil locker\n")
    				ch <- g
    				return
    			}
    
    			var locked bool
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/internal/language/lookup.go

    )
    
    // findIndex tries to find the given tag in idx and returns a standardized error
    // if it could not be found.
    func findIndex(idx tag.Index, key []byte, form string) (index int, err error) {
    	if !tag.FixCase(form, key) {
    		return 0, ErrSyntax
    	}
    	i := idx.Index(key)
    	if i == -1 {
    		return 0, NewValueError(key)
    	}
    	return i, nil
    }
    
    func searchUint(imap []uint16, key uint16) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. pkg/kubelet/userns/userns_manager.go

    	}
    
    	_, err = m.parseUserNsFileAndRecord(pod, content)
    	return err
    }
    
    // isSet checks if the specified index is already set.
    func (m *UsernsManager) isSet(v uint32) bool {
    	index := int(v/userNsLength) - m.off
    	if index < 0 || index >= m.len {
    		return true
    	}
    	return m.used.Has(index)
    }
    
    // allocateOne finds a free user namespace and allocate it to the specified pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/aggregate/controller.go

    		log.Warnf("Registry list is empty, nothing to delete")
    		return
    	}
    	index, ok := c.getRegistryIndex(clusterID, providerID)
    	if !ok {
    		log.Warnf("Registry %s/%s is not found in the registries list, nothing to delete", providerID, clusterID)
    		return
    	}
    	c.registries[index] = nil
    	c.registries = append(c.registries[:index], c.registries[index+1:]...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. callbacks/preload.go

    				tx.AddError(rel.Field.Set(tx.Statement.Context, reflectValue.Index(i), reflect.MakeSlice(rel.Field.IndirectFieldType, 0, 10).Interface()))
    			default:
    				tx.AddError(rel.Field.Set(tx.Statement.Context, reflectValue.Index(i), reflect.New(rel.Field.FieldType).Interface()))
    			}
    		}
    	}
    
    	for i := 0; i < reflectResults.Len(); i++ {
    		elem := reflectResults.Index(i)
    		for idx, field := range relForeignFields {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. src/runtime/syscall_windows.go

    	}
    
    	key := winCallbackKey{(*funcval)(fn.data), cdecl}
    
    	cbsLock()
    
    	// Check if this callback is already registered.
    	if n, ok := cbs.index[key]; ok {
    		cbsUnlock()
    		return callbackasmAddr(n)
    	}
    
    	// Register the callback.
    	if cbs.index == nil {
    		cbs.index = make(map[winCallbackKey]int)
    	}
    	n := cbs.n
    	if n >= len(cbs.ctxt) {
    		cbsUnlock()
    		throw("too many callback functions")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. cmd/bucket-metadata-sys.go

    			if err != nil {
    				return err
    			}
    			bucketMetas[index] = meta
    			return nil
    		}, index)
    	}
    
    	errs := g.Wait()
    	for index, err := range errs {
    		if err != nil {
    			internalLogOnceIf(ctx, fmt.Errorf("Unable to load bucket metadata, will be retried: %w", err),
    				"load-bucket-metadata-"+buckets[index].Name, logger.WarningKind)
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/check_test.go

    		}
    		// len(indices) > 0
    
    		// If there are multiple matching errors, select the one with the closest column position.
    		index := -1 // index of matching error
    		var delta uint
    		for _, i := range indices {
    			if d := absDiff(gotPos.Col(), errList[i].Pos.Col()); index < 0 || d < delta {
    				index, delta = i, d
    			}
    		}
    
    		// The closest column position must be within expected colDelta.
    		if delta > colDelta {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. pkg/api/service/warnings_test.go

    			want:      []string{},
    		},
    		{
    			name:      "IPv6 No failures",
    			address:   "2001:db8::2",
    			fieldPath: field.NewPath("spec").Child("clusterIPs").Index(0),
    			want:      []string{},
    		},
    		{
    			name:      "IPv4 with leading zeros",
    			address:   "192.012.2.2",
    			fieldPath: field.NewPath("spec").Child("clusterIPs").Index(0),
    			want: []string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 26 22:57:57 UTC 2023
    - 10.4K bytes
    - Viewed (0)
Back to top