Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SetInlineData (0.08 sec)

  1. cmd/storage-datatypes.go

    	// would return true for InlineData() in these versions even though the
    	// object isn't inlined in xl.meta
    	return ok && !fi.IsRemote()
    }
    
    // SetInlineData marks object (version) as inline.
    func (fi *FileInfo) SetInlineData() {
    	if fi.Metadata == nil {
    		fi.Metadata = make(map[string]string, 1)
    	}
    	fi.Metadata[ReservedMetadataPrefixLower+"inline-data"] = "true"
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. cmd/erasure-object.go

    				// that xl.meta is written as expected.
    				metaArr[index].Data = nil
    			}
    			metaArr[index].Metadata = srcInfo.UserDefined
    			// Preserve existing values
    			if inlineData {
    				metaArr[index].SetInlineData()
    			}
    			if freeVersionID != "" {
    				metaArr[index].SetTierFreeVersionID(freeVersionID)
    			}
    			if freeVersionMarker {
    				metaArr[index].SetTierFreeVersion()
    			}
    		}
    	}
    
    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/erasure-healing.go

    				if len(inlineBuffers) > 0 && inlineBuffers[i] != nil {
    					partsMetadata[i].Data = inlineBuffers[i].Bytes()
    					partsMetadata[i].SetInlineData()
    				} else {
    					partsMetadata[i].Data = nil
    				}
    			}
    
    			// If all disks are having errors, we give up.
    			if disksToHealCount == 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    				// If written with header we are fine.
    				return fi, nil
    			}
    			if fi.Size == 0 || !(fi.VersionID != "" && fi.VersionID != nullVersionID) {
    				// If versioned we have no conflicts.
    				fi.SetInlineData()
    				return fi, nil
    			}
    
    			// For overwritten objects without header we might have a
    			// conflict with data written later. Check the data path
    			// if there is a part with data.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  5. cmd/erasure-healing_test.go

    )
    
    // Tests isObjectDangling function
    func TestIsObjectDangling(t *testing.T) {
    	fi := newFileInfo("test-object", 2, 2)
    	fi.Erasure.Index = 1
    
    	ifi := newFileInfo("test-object", 2, 2)
    	ifi.SetInlineData()
    	ifi.Erasure.Index = 1
    
    	testCases := []struct {
    		name             string
    		metaArr          []FileInfo
    		errs             []error
    		dataErrs         map[int][]int
    		expectedMeta     FileInfo
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
Back to top