Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/xl-storage-format-utils_test.go

    			transfi.TransitionStatus = lifecycle.TransitionComplete
    			transfi.TransitionTier = "MINIO-TIER"
    			transfi.TransitionedObjName = mustGetUUID()
    			xl.DeleteVersion(transfi)
    
    			fi.SetTierFreeVersionID(mustGetUUID())
    			// delete this version leading to a free version
    			xl.DeleteVersion(fi)
    			freeVersionIDs = append(freeVersionIDs, fi.TierFreeVersionID())
    			allVersionIDs = append(allVersionIDs, fi.TierFreeVersionID())
    		} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. cmd/naughty-disk_test.go

    		return err
    	}
    	return d.disk.UpdateMetadata(ctx, volume, path, fi, opts)
    }
    
    func (d *naughtyDisk) DeleteVersion(ctx context.Context, volume, path string, fi FileInfo, forceDelMarker bool, opts DeleteOptions) (err error) {
    	if err := d.calcError(); err != nil {
    		return err
    	}
    	return d.disk.DeleteVersion(ctx, volume, path, fi, forceDelMarker, opts)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. cmd/storage-interface.go

    	// WalkDir will walk a directory on disk and return a metacache stream on wr.
    	WalkDir(ctx context.Context, opts WalkDirOptions, wr io.Writer) error
    
    	// Metadata operations
    	DeleteVersion(ctx context.Context, volume, path string, fi FileInfo, forceDelMarker bool, opts DeleteOptions) error
    	DeleteVersions(ctx context.Context, volume string, versions []FileInfoVersions, opts DeleteOptions) []error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. cmd/xl-storage-disk-id-check.go

    	w := xioutil.NewDeadlineWorker(globalDriveConfig.GetMaxTimeout())
    	return w.Run(func() error { return p.storage.WriteAll(ctx, volume, path, b) })
    }
    
    func (p *xlStorageDiskIDCheck) DeleteVersion(ctx context.Context, volume, path string, fi FileInfo, forceDelMarker bool, opts DeleteOptions) (err error) {
    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricDeleteVersion, volume, path)
    	if err != nil {
    		return err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:56:26 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  5. cmd/storage-rest-client.go

    		DiskID:     *client.diskID.Load(),
    		Volume:     volume,
    		FilePath:   path,
    		UpdateOpts: opts,
    		FI:         fi,
    	})
    	return toStorageErr(err)
    }
    
    func (client *storageRESTClient) DeleteVersion(ctx context.Context, volume, path string, fi FileInfo, forceDelMarker bool, opts DeleteOptions) (err error) {
    	ctx, cancel := context.WithTimeout(ctx, globalDriveConfig.GetMaxTimeout())
    	defer cancel()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    	return w.Run(func() (err error) {
    		return s.moveToTrashNoDeadline(filePath, recursive, immediatePurge)
    	})
    }
    
    // DeleteVersion - deletes FileInfo metadata for path at `xl.meta`. forceDelMarker
    // will force creating a new `xl.meta` to create a new delete marker
    func (s *xlStorage) DeleteVersion(ctx context.Context, volume, path string, fi FileInfo, forceDelMarker bool, opts DeleteOptions) (err error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  7. cmd/erasure-object.go

    	g := errgroup.WithNErrs(len(disks))
    	for index := range disks {
    		index := index
    		g.Go(func() error {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    			return disks[index].DeleteVersion(ctx, bucket, object, fi, false, DeleteOptions{})
    		}, index)
    	}
    
    	for index, err := range g.Wait() {
    		var errStr string
    		if err != nil {
    			errStr = err.Error()
    		} else {
    			errStr = "<nil>"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-v2.go

    		return x.versions[i].header.sortsBefore(x.versions[j].header)
    	})
    }
    
    // DeleteVersion deletes the version specified by version id.
    // returns to the caller which dataDir to delete, also
    // indicates if this is the last version.
    func (x *xlMetaV2) DeleteVersion(fi FileInfo) (string, error) {
    	// This is a situation where versionId is explicitly
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  9. cmd/storage-rest-server.go

    		return np, grid.NewRemoteErr(errDiskNotFound)
    	}
    	volume := p.Volume
    	filePath := p.FilePath
    	forceDelMarker := p.ForceDelMarker
    
    	opts := DeleteOptions{}
    	err := s.getStorage().DeleteVersion(context.Background(), volume, filePath, p.FI, forceDelMarker, opts)
    	return np, grid.NewRemoteErr(err)
    }
    
    // ReadVersionHandlerWS read metadata of versionID
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  10. cmd/xl-storage_test.go

    			}
    			if err != errFileVersionNotFound {
    				t.Fatalf("Version %s should not exist, but returned: %#v", versions[i], fi)
    			}
    		}
    	}
    
    	// Delete version 0...
    	checkVerExist(t)
    	err = xl.DeleteVersion(ctx, volume, object, FileInfo{Name: object, Volume: volume, VersionID: versions[0]}, false, DeleteOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	deleted[0] = true
    	checkVerExist(t)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top