Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HealObjects (0.12 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 {
    			_, err := objLayer.HealObject(ctx, bucket, object, vid, madmin.HealOpts{ScanMode: scanMode, Remove: true})
    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/erasure-server-pool.go

    	}()
    
    	return nil
    }
    
    // HealObjectFn closure function heals the object.
    type HealObjectFn func(bucket, object, versionID string, scanMode madmin.HealScanMode) error
    
    func (z *erasureServerPools) HealObjects(ctx context.Context, bucket, prefix string, opts madmin.HealOpts, healObjectFn HealObjectFn) error {
    	healEntry := func(bucket string, entry metaCacheEntry, scanMode madmin.HealScanMode) error {
    		if entry.isDir() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
Back to top