Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetInlineData (0.06 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/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)
Back to top