Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getDataDir (0.09 sec)

  1. cmd/xl-storage-format-v2.go

    	if v := bytes.Compare(x.VersionID[:], o.VersionID[:]); v != 0 {
    		return v > 0
    	}
    	// Flags
    	if x.Flags != o.Flags {
    		return x.Flags > o.Flags
    	}
    	return false
    }
    
    func (j xlMetaV2Version) getDataDir() string {
    	if j.Valid() {
    		switch j.Type {
    		case LegacyType:
    			return j.ObjectV1.DataDir
    		case ObjectType:
    			return uuid.UUID(j.ObjectV2.DataDir).String()
    		}
    	}
    	return ""
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  2. cmd/xl-storage.go

    	healing := fi.Healing()
    
    	// Replace the data of null version or any other existing version-id
    	_, ver, err := xlMeta.findVersionStr(reqVID)
    	if err == nil {
    		dataDir := ver.getDataDir()
    		if dataDir != "" && (xlMeta.SharedDataDirCountStr(reqVID, dataDir) == 0) {
    			// Purge the destination path as we are not preserving anything
    			// versioned object was not requested.
    			res.OldDataDir = dataDir
    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