Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for succmodTimes (0.07 sec)

  1. cmd/erasure-metadata_test.go

    	getNFInfo := func(n int, quorum int, t int64, dataDir string, succModTimes []time.Time, numVersions []int) []FileInfo {
    		fi := newFileInfo("test", 8, 8)
    		fi.AddObjectPart(1, "etag", 100, 100, UTCNow(), nil, nil)
    		fi.ModTime = time.Unix(t, 0)
    		fi.DataDir = dataDir
    		fis := make([]FileInfo, n)
    		for i := range fis {
    			fis[i] = fi
    			fis[i].Erasure.Index = i + 1
    			if succModTimes != nil {
    				fis[i].SuccessorModTime = succModTimes[i]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:02:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. cmd/erasure-metadata.go

    				}
    				props := objProps{
    					succModTime: metaArr[i].SuccessorModTime,
    					numVersions: metaArr[i].NumVersions,
    				}
    				otherPropsMap[props]++
    			}
    		}
    	}
    
    	if found {
    		// Update candidate FileInfo with succModTime and numVersions in quorum when available
    		if props, ok := otherPropsMap.GetValueWithQuorum(quorum); ok {
    			candidate.SuccessorModTime = props.succModTime
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
Back to top