Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for numVersions (0.11 sec)

  1. cmd/erasure-healing_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if fileInfoPreHeal.NumVersions != 1 {
    		t.Fatalf("Expected versions 1, got %d", fileInfoPreHeal.NumVersions)
    	}
    
    	if err = objLayer.HealObjects(ctx, bucket, "", madmin.HealOpts{Remove: true},
    		func(bucket, object, vid string, scanMode madmin.HealScanMode) error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  2. cmd/data-usage-cache_gen.go

    						if err != nil {
    							err = msgp.WrapError(err, "Tiers", za0001, "TotalSize")
    							return
    						}
    					case "nv":
    						za0002.NumVersions, err = dc.ReadInt()
    						if err != nil {
    							err = msgp.WrapError(err, "Tiers", za0001, "NumVersions")
    							return
    						}
    					case "no":
    						za0002.NumObjects, err = dc.ReadInt()
    						if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle_test.go

    				DeleteMarker:     tc.isDelMarker,
    				IsLatest:         !tc.isNoncurrent,
    				SuccessorModTime: tc.objectSuccessorModTime,
    				VersionID:        tc.versionID,
    			}
    			opts.NumVersions = 1
    			if tc.hasManyVersions {
    				opts.NumVersions = 2 // at least one noncurrent version
    			}
    			if res := lc.Eval(opts); res.Action != tc.expectedAction {
    				t.Fatalf("Expected action: `%v`, got: `%v`", tc.expectedAction, res.Action)
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    			return versions, err
    		}
    		fi, err := dst.ToFileInfo(volume, path, allParts)
    		if err != nil {
    			return versions, err
    		}
    		fi.NumVersions = len(x.versions)
    		versions = append(versions, fi)
    	}
    
    	for i := range versions {
    		versions[i].NumVersions = len(versions)
    		if i > 0 {
    			versions[i].SuccessorModTime = versions[i-1].ModTime
    		}
    	}
    	if len(versions) > 0 {
    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/object-api-datatypes_gen.go

    			if err != nil {
    				err = msgp.WrapError(err, "VersionPurgeStatus")
    				return
    			}
    		case "NumVersions":
    			z.NumVersions, bts, err = msgp.ReadIntBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "NumVersions")
    				return
    			}
    		case "SuccessorModTime":
    			z.SuccessorModTime, bts, err = msgp.ReadTimeBytes(bts)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  6. cmd/batch-handlers.go

    // object which matches the given filters.
    func (ri *batchJobInfo) trackMultipleObjectVersions(bucket string, info ObjectInfo, success bool) {
    	if success {
    		ri.Objects += int64(info.NumVersions)
    	} else {
    		ri.ObjectsFailed += int64(info.NumVersions)
    	}
    }
    
    func (ri *batchJobInfo) trackCurrentBucketObject(bucket string, info ObjectInfo, success bool, attempt int) {
    	if ri == nil {
    		return
    	}
    
    	ri.mu.Lock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  7. cmd/bucket-handlers.go

    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return
    			}
    
    			// Notify object created events.
    			sendEvent(eventArgsList[i])
    
    			if eventArgsList[i].Object.NumVersions > int(scannerExcessObjectVersions.Load()) {
    				// Send events for excessive versions.
    				sendEvent(eventArgs{
    					EventName:    event.ObjectManyVersions,
    					BucketName:   eventArgsList[i].Object.Bucket,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    			}
    			res["size"] = strconv.FormatInt(sizeS.totalSize, 10)
    			for name, tier := range sizeS.tiers {
    				res["tier-size-"+name] = strconv.FormatUint(tier.TotalSize, 10)
    				res["tier-versions-"+name] = strconv.Itoa(tier.NumVersions)
    			}
    			if sizeS.failedCount > 0 {
    				res["repl-failed"] = fmt.Sprintf("%d versions, %d bytes", sizeS.failedCount, sizeS.failedSize)
    			}
    			if sizeS.pendingCount > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top