Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for index (0.13 sec)

  1. 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
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    	bucketsToBeUpdatedSlice := bucketsToBeUpdated.ToSlice()
    	g := errgroup.WithNErrs(len(bucketsToBeUpdatedSlice)).WithConcurrency(50)
    
    	for index := range bucketsToBeUpdatedSlice {
    		index := index
    		g.Go(func() error {
    			return globalDNSConfig.Put(bucketsToBeUpdatedSlice[index])
    		}, index)
    	}
    
    	ctx := GlobalContext
    	for _, err := range g.Wait() {
    		if err != nil {
    			dnsLogIf(ctx, err)
    			return
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    		}
    	}
    	pred := storage.Everything
    	pred.AllowWatchBookmarks = true
    
    	makePod := func(index int) *examplev1.Pod {
    		return &examplev1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:            fmt.Sprintf("pod-%d", index),
    				Namespace:       "ns",
    				ResourceVersion: fmt.Sprintf("%v", 100+index),
    			},
    		}
    	}
    
    	// Create pod to initialize watch cache.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  4. pkg/controller/job/job_controller.go

    		return false
    	}
    	if hasBackoffLimitPerIndex(jobCtx.job) {
    		if index := getCompletionIndex(pod.Annotations); index != unknownCompletionIndex {
    			if p, ok := jobCtx.podsWithDelayedDeletionPerIndex[index]; ok && p.UID == pod.UID {
    				logger.V(3).Info("Delaying pod finalizer removal to await for pod recreation within the index", "pod", klog.KObj(pod))
    				return false
    			}
    		}
    	}
    	return true
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    		listVal.Set(reflect.MakeSlice(listVal.Type(), len(selectedObjects), len(selectedObjects)))
    		span.AddEvent("Resized result")
    		for i, o := range selectedObjects {
    			listVal.Index(i).Set(reflect.ValueOf(o).Elem())
    		}
    	}
    	span.AddEvent("Filtered items", attribute.Int("count", listVal.Len()))
    	if c.versioner != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  6. cmd/erasure-healing_test.go

    )
    
    // Tests isObjectDangling function
    func TestIsObjectDangling(t *testing.T) {
    	fi := newFileInfo("test-object", 2, 2)
    	fi.Erasure.Index = 1
    
    	ifi := newFileInfo("test-object", 2, 2)
    	ifi.SetInlineData()
    	ifi.Erasure.Index = 1
    
    	testCases := []struct {
    		name             string
    		metaArr          []FileInfo
    		errs             []error
    		dataErrs         map[int][]int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/debug.go

    	splitOffset int64
    }
    
    // lookup looks up a LocalSlot in the slot canonicalizer "sc", returning
    // a canonical index for the slot, and adding it to the table if need
    // be. Return value is the canonical slot index, and a boolean indicating
    // whether the slot was found in the table already (TRUE => found).
    func (sc *slotCanonicalizer) lookup(ls LocalSlot) (SlKeyIdx, bool) {
    	split := noSlot
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    func RunTestListResourceVersionMatch(ctx context.Context, t *testing.T, store InterfaceWithPrefixTransformer) {
    	nextPod := func(index uint32) (string, *example.Pod) {
    		obj := &example.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: fmt.Sprintf("pod-%d", index),
    				Labels: map[string]string{
    					"even": strconv.FormatBool(index%2 == 0),
    				},
    			},
    		}
    		return computePodKey(obj), obj
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  9. pkg/proxy/nftables/proxier.go

    // netfilter hooks (e.g., "postrouting", "input", etc.), as opposed to "regular" chains,
    // which are only run when a rule jumps to them. See
    // https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains.
    //
    // These are set up from setupNFTables() and then not directly referenced by
    // syncProxyRules().
    //
    // All of our base chains have names that are just "${type}-${hook}". e.g., "nat-prerouting".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/gateway/conversion.go

    	result.ReferencedNamespaceKeys = nsReferences
    	result.ResourceReferences = ctx.resourceReferences
    	return result
    }
    
    // convertReferencePolicies extracts all ReferencePolicy into an easily accessibly index.
    func convertReferencePolicies(r GatewayResources) AllowedReferences {
    	res := map[Reference]map[Reference]*Grants{}
    	type namespacedGrant struct {
    		Namespace string
    		Grant     *k8sbeta.ReferenceGrantSpec
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
Back to top