Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for DeleteType (0.11 sec)

  1. cmd/xl-storage-free-version.go

    		vID, err := uuid.Parse(fi.TierFreeVersionID())
    		if err != nil {
    			panic(fmt.Errorf("Invalid Tier Object delete marker versionId %s %v", fi.TierFreeVersionID(), err))
    		}
    		freeEntry := xlMetaV2Version{Type: DeleteType, WrittenByVersion: globalVersionUnix}
    		freeEntry.DeleteMarker = &xlMetaV2DeleteMarker{
    			VersionID: vID,
    			ModTime:   j.ModTime, // fi.ModTime may be empty
    			MetaSys:   make(map[string][]byte),
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2_string.go

    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[invalidVersionType-0]
    	_ = x[ObjectType-1]
    	_ = x[DeleteType-2]
    	_ = x[LegacyType-3]
    	_ = x[lastVersionType-4]
    }
    
    const _VersionType_name = "invalidVersionTypeObjectTypeDeleteTypeLegacyTypelastVersionType"
    
    var _VersionType_index = [...]uint8{0, 18, 28, 38, 48, 63}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 02 19:29:16 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  3. cni/pkg/repair/monitoring.go

    // limitations under the License.
    
    package repair
    
    import (
    	"istio.io/istio/pkg/monitoring"
    )
    
    var (
    	typeLabel  = monitoring.CreateLabel("type")
    	deleteType = "delete"
    	repairType = "repair"
    	labelType  = "label"
    
    	resultLabel   = monitoring.CreateLabel("result")
    	resultSuccess = "success"
    	resultSkip    = "skip"
    	resultFail    = "fail"
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Dec 20 22:14:13 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    		return j.ObjectV2.Signature()
    	case DeleteType:
    		return j.DeleteMarker.Signature()
    	case LegacyType:
    		return j.ObjectV1.Signature()
    	}
    	return signatureErr
    }
    
    // getModTime will return the ModTime of the underlying version.
    func (j xlMetaV2Version) getModTime() time.Time {
    	switch j.Type {
    	case ObjectType:
    		return time.Unix(0, j.ObjectV2.ModTime)
    	case DeleteType:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  5. cmd/metacache-entries_test.go

    				{header: xlMetaV2VersionHeader{
    					VersionID: [16]byte{7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7},
    					ModTime:   baseTime.Add(90 * time.Minute).UnixNano(),
    					Signature: [4]byte{6, 1, 1, 1},
    					Type:      DeleteType,
    					Flags:     0,
    				}},
    			},
    		},
    		// Delete marker and version from 1
    		9: {
    			versions: []xlMetaV2ShallowVersion{
    				{header: xlMetaV2VersionHeader{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 31.6K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2-legacy.go

    	}
    	o, err = j.UnmarshalMsg(bts)
    
    	// Fix inconsistent x-minio-internal-replication-timestamp by converting to UTC.
    	// Fixed in version 2 or later
    	if err == nil && j.Type == DeleteType && v < 2 {
    		if val, ok := j.DeleteMarker.MetaSys[ReservedMetadataPrefixLower+ReplicationTimestamp]; ok {
    			tm, err := time.Parse(time.RFC3339Nano, string(val))
    			if err == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 19 16:43:43 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. cni/pkg/repair/repair_test.go

    			},
    			wantPods:  []*corev1.Pod{workingPod, workingPodDiedPreviously},
    			wantErr:   false,
    			wantCount: 1,
    			wantTags:  map[string]string{"result": resultSuccess, "type": deleteType},
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			mt := monitortest.New(t)
    			tt.config.DeletePods = true
    			c, err := NewRepairController(tt.client, tt.config)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. cni/pkg/repair/repaircontroller.go

    }
    
    const (
    	ReasonDeleteBrokenPod = "DeleteBrokenPod"
    	ReasonLabelBrokenPod  = "LabelBrokenPod"
    )
    
    func (c *Controller) deleteBrokenPod(pod *corev1.Pod) error {
    	m := podsRepaired.With(typeLabel.Value(deleteType))
    	repairLog.Infof("Pod detected as broken, deleting: %s/%s", pod.Namespace, pod.Name)
    
    	// Make sure we are deleting what we think we are...
    	preconditions := &metav1.Preconditions{
    		UID:             &pod.UID,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. cmd/metacache-entries.go

    func (e *metaCacheEntry) isLatestDeletemarker() bool {
    	if e.cached != nil {
    		if len(e.cached.versions) == 0 {
    			return true
    		}
    		return e.cached.versions[0].header.Type == DeleteType
    	}
    	if !isXL2V1Format(e.metadata) {
    		return false
    	}
    	if meta, _, err := isIndexedMetaV2(e.metadata); meta != nil {
    		return meta.IsLatestDeleteMarker()
    	} else if err != nil {
    		return true
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2_test.go

    		}
    		test(t, &xl)
    	})
    	t.Run("write-timestamp", func(t *testing.T) {
    		var xl xlMetaV2
    		err = xl.Load(data)
    		if err != nil {
    			t.Fatal(err)
    		}
    		ventry := xlMetaV2Version{
    			Type: DeleteType,
    			DeleteMarker: &xlMetaV2DeleteMarker{
    				VersionID: uuid.New(),
    				ModTime:   time.Now().UnixNano(),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top