Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DeleteVersion (0.46 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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