Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetSkipTierFreeVersion (0.21 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)
  3. cmd/erasure-object.go

    			TransitionStatus: opts.Transition.Status,
    			ExpireRestored:   opts.Transition.ExpireRestored,
    		}
    		fi.SetTierFreeVersionID(fvID)
    		if opts.SkipFreeVersion {
    			fi.SetSkipTierFreeVersion()
    		}
    		if opts.VersionID != "" {
    			fi.VersionID = opts.VersionID
    		} else if opts.Versioned {
    			fi.VersionID = mustGetUUID()
    		}
    		// versioning suspended means we add `null` version as
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top