Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetSkipTierFreeVersion (0.08 sec)

  1. cmd/erasure-metadata.go

    	}
    	fi.Metadata[ReservedMetadataPrefixLower+tierFVMarker] = ""
    }
    
    // SetSkipTierFreeVersion indicates to skip adding a tier free version id.
    // Note: Used only when expiring tiered objects and the remote content has
    // already been scheduled for deletion
    func (fi *FileInfo) SetSkipTierFreeVersion() {
    	if fi.Metadata == nil {
    		fi.Metadata = make(map[string]string)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. cmd/erasure-metadata_test.go

    	if fi.TransitionInfoEquals(ofi) {
    		t.Fatalf("Expected to be inequal: fi %v ofi %v", fi, ofi)
    	}
    }
    
    func TestSkipTierFreeVersion(t *testing.T) {
    	fi := newFileInfo("object", 8, 8)
    	fi.SetSkipTierFreeVersion()
    	if ok := fi.SkipTierFreeVersion(); !ok {
    		t.Fatal("Expected SkipTierFreeVersion to be set on FileInfo but wasn't")
    	}
    }
    
    func TestListObjectParities(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:02:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top