Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Equal (0.12 sec)

  1. docs/debugging/xl-meta/main.go

    	if len(buf) <= 8 {
    		return payload, 0, 0, fmt.Errorf("xlMeta: no data")
    	}
    
    	if !bytes.Equal(buf[:4], xlHeader[:]) {
    		return payload, 0, 0, fmt.Errorf("xlMeta: unknown XLv2 header, expected %v, got %v", xlHeader[:4], buf[:4])
    	}
    
    	if bytes.Equal(buf[4:8], []byte("1   ")) {
    		// Set as 1,0.
    		major, minor = 1, 0
    	} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  2. cmd/erasure-object.go

    		// as well as common modtime, if modtime is not possible
    		// verify if it has common "etag" at least.
    		if onlineMeta[i].IsValid() && onlineMeta[i].Erasure.Equal(fi.Erasure) {
    			ok := onlineMeta[i].ModTime.Equal(modTime)
    			if modTime.IsZero() || modTime.Equal(timeSentinel) {
    				ok = etag != "" && etag == fi.Metadata["etag"]
    			}
    			if ok {
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  3. cmd/erasure-metadata.go

    }
    
    // ReplicationInfoEquals returns true if server-side replication related fields are equal, false otherwise.
    func (fi FileInfo) ReplicationInfoEquals(ofi FileInfo) bool {
    	switch {
    	case fi.MarkDeleted != ofi.MarkDeleted,
    		!fi.ReplicationState.Equal(ofi.ReplicationState):
    		return false
    	}
    	return true
    }
    
    // objectPartIndex - returns the index of matching object part number.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  4. cmd/iam.go

    	for normKey, origKeys := range normalizedDNKeysMap {
    		if len(origKeys) > 1 {
    			// If there are multiple DN keys that normalize to the same value,
    			// check if the policy mappings are equal, if they are we don't need
    			// to return an error.
    			policiesDiffer := false
    			firstMappedPolicies := policyMap[origKeys[0]].policySet()
    			for i := 1; i < len(origKeys); i++ {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  5. cmd/post-policy_test.go

    	expirationStr := fmt.Sprintf(`"expiration": "%s"`, expiration.Format(iso8601TimeFormat))
    	// Add the bucket condition, only accept buckets equal to the one passed.
    	bucketConditionStr := fmt.Sprintf(`["eq", "$bucket", "%s"]`, bucketName)
    	// Add the key condition, only accept keys equal to the one passed.
    	keyConditionStr := fmt.Sprintf(`["eq", "$key", "%s/upload.txt"]`, objectKey)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  6. cmd/bucket-targets.go

    	sys.RUnlock()
    
    	if tgt.Client != nil {
    		return tgt.Client
    	}
    	defer func() { // lazy refresh remote targets
    		if tgt.Client == nil && !sys.isReloadingTarget(bucket, arn) && (tgt.lastRefresh.Equal(timeSentinel) || tgt.lastRefresh.Before(UTCNow().Add(-5*time.Minute))) {
    			tgts, err := globalBucketMetadataSys.GetBucketTargetsConfig(bucket)
    			if err == nil {
    				sys.markRefreshInProgress(bucket, arn)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    			z.serverPools[i], err = newErasureSets(ctx, ep, storageDisks[i], formats[i], commonParityDrives, i)
    		})
    		if err != nil {
    			return nil, err
    		}
    
    		if deploymentID != "" && bytes.Equal(z.deploymentID[:], []byte{}) {
    			z.deploymentID = uuid.MustParse(deploymentID)
    		}
    
    		for _, storageDisk := range storageDisks[i] {
    			if storageDisk != nil && storageDisk.IsLocal() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  8. cmd/metacache-entries.go

    	// check both fileInfo's have same number of versions, if not skip
    	// the `other` entry.
    	if len(eVers.versions) != len(oVers.versions) {
    		eTime := eVers.latestModtime()
    		oTime := oVers.latestModtime()
    		if !eTime.Equal(oTime) {
    			if eTime.After(oTime) {
    				return e, false
    			}
    			return other, false
    		}
    		// Tiebreak on version count.
    		if len(eVers.versions) > len(oVers.versions) {
    			return e, false
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  9. cmd/storage-datatypes.go

    		return false
    	}
    	if fi.IsCompressed() != ofi.IsCompressed() {
    		return false
    	}
    	if !fi.TransitionInfoEquals(ofi) {
    		return false
    	}
    	if !fi.ModTime.Equal(ofi.ModTime) {
    		return false
    	}
    	return fi.Erasure.Equal(ofi.Erasure)
    }
    
    // GetDataDir returns an expected dataDir given FileInfo
    //   - deleteMarker returns "delete-marker"
    //   - returns "legacy" if FileInfo is XLV1 and DataDir is
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  10. cmd/site-replication.go

    			latestID = dID
    			latestPeers = ps.Peers
    		}
    	}
    	latestPeerName = info.Sites[latestID].Name
    
    	for dID, ps := range info.PeerStates {
    		// If latest peers ILM expiry flags are equal to current peer, no need to heal
    		flagEqual := true
    		for id, peer := range latestPeers {
    			if !(ps.Peers[id].ReplicateILMExpiry == peer.ReplicateILMExpiry) {
    				flagEqual = false
    				break
    			}
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
Back to top