Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for VersionID (0.09 sec)

  1. cmd/object-handlers-common.go

    			return true
    		}
    	}
    
    	etagMatch := opts.PreserveETag != "" && isETagEqual(objInfo.ETag, opts.PreserveETag)
    	vidMatch := opts.VersionID != "" && opts.VersionID == objInfo.VersionID
    	if etagMatch && vidMatch {
    		writeHeaders()
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrPreconditionFailed), r.URL)
    		return true
    	}
    
    	// Object content should be persisted.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. cmd/batch-handlers.go

    		tgtObject = pathJoin(r.Target.Prefix, srcObjInfo.Name)
    	}
    
    	versionID := srcObjInfo.VersionID
    	if r.Target.Type == BatchJobReplicateResourceS3 || r.Source.Type == BatchJobReplicateResourceS3 {
    		versionID = ""
    	}
    	if srcObjInfo.DeleteMarker {
    		_, err := api.DeleteObject(ctx, tgtBucket, tgtObject, ObjectOptions{
    			VersionID: versionID,
    			// Since we are preserving a delete marker, we have to make sure this is always true.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  3. cmd/erasure-healing.go

    	storageEndpoints := er.getEndpoints()
    
    	// When versionID is empty, we read directly from the `null` versionID for healing.
    	if versionID == "" {
    		versionID = nullVersionID
    	}
    
    	// Perform quick read without lock.
    	// This allows to quickly check if all is ok or all are missing.
    	_, errs := readAllFileInfo(healCtx, storageDisks, "", bucket, object, versionID, false, false)
    	if isAllNotFound(errs) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    		if versionID == "" {
    			versionID = mustGetUUID()
    			fi.IsLatest = true // we are creating a new version so this is latest.
    		}
    	}
    
    	modTime = UTCNow() // We only preserve modTime if dstOpts.MTime is true.
    	// in all other cases mtime is latest.
    
    	fi.VersionID = versionID // set any new versionID we might have created
    	fi.ModTime = modTime     // set modTime for the new versionID
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2.go

    func (j xlMetaV2DeleteMarker) ToFileInfo(volume, path string) (FileInfo, error) {
    	versionID := ""
    	var uv uuid.UUID
    	// check if the version is not "null"
    	if j.VersionID != uv {
    		versionID = uuid.UUID(j.VersionID).String()
    	}
    	fi := FileInfo{
    		Volume:    volume,
    		Name:      path,
    		ModTime:   time.Unix(0, j.ModTime).UTC(),
    		VersionID: versionID,
    		Deleted:   true,
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  6. cmd/erasure-metadata.go

    	object = decodeDirObject(object)
    	versionID := fi.VersionID
    	if versioned && versionID == "" {
    		versionID = nullVersionID
    	}
    
    	objInfo := ObjectInfo{
    		IsDir:            HasSuffix(object, SlashSeparator),
    		Bucket:           bucket,
    		Name:             object,
    		ParityBlocks:     fi.Erasure.ParityBlocks,
    		DataBlocks:       fi.Erasure.DataBlocks,
    		VersionID:        versionID,
    		IsLatest:         fi.IsLatest,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  7. docs/bucket/replication/delete-replication.sh

    echo "=== myminio2"
    ./mc ls --versions myminio2/testbucket/dir/file
    
    versionId="$(./mc ls --json --versions myminio1/testbucket/dir/ | tail -n1 | jq -r .versionId)"
    
    export AWS_ACCESS_KEY_ID=minioadmin
    export AWS_SECRET_ACCESS_KEY=minioadmin
    export AWS_REGION=us-east-1
    
    aws s3api --endpoint-url http://localhost:9001 delete-object --bucket testbucket --key dir/file --version-id "$versionId"
    
    ./mc ls -r --versions myminio1/testbucket >/tmp/myminio1.txt
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    func (di DeletedObjectReplicationInfo) ToMRFEntry() MRFReplicateEntry {
    	versionID := di.DeleteMarkerVersionID
    	if versionID == "" {
    		versionID = di.VersionID
    	}
    	return MRFReplicateEntry{
    		Bucket:    di.Bucket,
    		Object:    di.ObjectName,
    		versionID: versionID,
    	}
    }
    
    // Replication specific APIName
    const (
    	ReplicateObjectAPI = "ReplicateObject"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  9. cmd/bucket-handlers.go

    				Code:      apiErr.Code,
    				Message:   apiErr.Description,
    				Key:       object.ObjectName,
    				VersionID: object.VersionID,
    			}
    			continue
    		}
    		if object.VersionID != "" && object.VersionID != nullVersionID {
    			if _, err := uuid.Parse(object.VersionID); err != nil {
    				apiErr := errorCodes.ToAPIErr(ErrNoSuchVersion)
    				deleteResults[index].errInfo = DeleteError{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-decom.go

    					decommissioned++
    					stopFn(version.Size, errors.New("DELETE marked object with no other non-current versions will be skipped"))
    					continue
    				}
    
    				versionID := version.VersionID
    				if versionID == "" {
    					versionID = nullVersionID
    				}
    
    				var failure, ignore bool
    				if version.Deleted {
    					_, err := z.DeleteObject(ctx,
    						bi.Name,
    						version.Name,
    						ObjectOptions{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top