Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for findVersions (0.07 sec)

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

    		key = ""
    	}
    	var u uuid.UUID
    	if key != "" {
    		u, err = uuid.Parse(key)
    		if err != nil {
    			return -1, nil, errFileVersionNotFound
    		}
    	}
    	return x.findVersion(u)
    }
    
    func (x *xlMetaV2) findVersion(key [16]byte) (idx int, ver *xlMetaV2Version, err error) {
    	for i, ver := range x.versions {
    		if key == ver.header.VersionID {
    			obj, err := x.getIdx(i)
    			return i, obj, err
    		}
    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-format-v2_test.go

    		failOnErr(i+1, xl.AddVersion(fi))
    		fi.ExpireRestored = tc.expireRestored
    		fileInfos = append(fileInfos, fi)
    	}
    
    	for i, tc := range testCases {
    		_, version, err := xl.findVersion(uuid.MustParse(tc.versionID))
    		failOnErr(i+1, err)
    		if got := xl.SharedDataDirCount(version.getVersionID(), version.ObjectV2.DataDir); got != tc.shares {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top