Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SetSkipTierFreeVersion (0.28 sec)

  1. cmd/xl-storage-free-version_test.go

    	if _, ok := j.InitFreeVersion(fi); !ok {
    		t.Fatal("Expected a free version to be created")
    	}
    
    	// Test if we skip creating a free version if SkipTier was set on fi
    	fi.SetSkipTierFreeVersion()
    	if _, ok := j.InitFreeVersion(fi); ok {
    		t.Fatal("Expected no free version to be created")
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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