Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 59 for Equals (0.15 sec)

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

    	for k, v := range j.MetaUser {
    		// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w
    		if equals(k, xhttp.AmzMetaUnencryptedContentLength, xhttp.AmzMetaUnencryptedContentMD5) {
    			continue
    		}
    		if equals(k, "x-amz-storage-class") && v == storageclass.STANDARD {
    			continue
    		}
    
    		fi.Metadata[k] = v
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  2. cmd/erasure-healing.go

    			if IsErr(dataErr, []error{
    				errFileNotFound,
    				errFileVersionNotFound,
    				errFileCorrupt,
    			}...) {
    				return true
    			}
    		}
    		if !latestMeta.Equals(meta) {
    			return true
    		}
    	}
    	return false
    }
    
    const (
    	xMinIOHealing = ReservedMetadataPrefix + "healing"
    	xMinIODataMov = ReservedMetadataPrefix + "data-mov"
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  3. cmd/object-handlers-common.go

    	// If the object doesn't have a modtime (IsZero), or the modtime
    	// is obviously garbage (Unix time == 0), then ignore modtimes
    	// and don't process the If-Modified-Since header.
    	if objInfo.ModTime.IsZero() || objInfo.ModTime.Equal(time.Unix(0, 0)) {
    		return false
    	}
    
    	// Headers to be set of object content is not going to be written to the client.
    	writeHeaders := func() {
    		// set common headers
    		setCommonHeaders(w)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v1.go

    }
    
    // Equal equates current erasure info with newer erasure info.
    // returns false if one of the following check fails
    // - erasure algorithm is different
    // - data blocks are different
    // - parity blocks are different
    // - block size is different
    // - distribution array size is different
    // - distribution indexes are different
    func (ei ErasureInfo) Equal(nei ErasureInfo) bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2_test.go

    	failOnErr(err)
    	if len(list) != 2 {
    		t.Fatalf("want 1 entry, got %d", len(list))
    	}
    
    	if !bytes.Equal(xl2.data.find("756100c6-b393-4981-928a-d49bbc164741"), data) {
    		t.Fatal("Find data returned", xl2.data.find("756100c6-b393-4981-928a-d49bbc164741"))
    	}
    	if !bytes.Equal(xl2.data.find(fi.VersionID), data2) {
    		t.Fatal("Find data returned", xl2.data.find(fi.VersionID))
    	}
    
    	// Remove entry
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  6. cmd/signature-v4.go

    		return doesPolicySignatureV2Match(formValues)
    	}
    	return doesPolicySignatureV4Match(formValues)
    }
    
    // compareSignatureV4 returns true if and only if both signatures
    // are equal. The signatures are expected to be HEX encoded strings
    // according to the AWS S3 signature V4 spec.
    func compareSignatureV4(sig1, sig2 string) bool {
    	// The CTC using []byte(str) works because the hex encoding
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. internal/config/errors.go

    	)
    
    	ErrInvalidNumberOfErasureEndpoints = newErrFn(
    		"Invalid total number of endpoints for erasure mode",
    		"Please provide number of endpoints greater or equal to 2",
    		"For more information, please refer to https://min.io/docs/minio/linux/operations/concepts/erasure-coding.html",
    	)
    
    	ErrStorageClassValue = newErrFn(
    		"Invalid storage class value",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 18 22:25:32 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. cmd/erasure.go

    		t := time.NewTicker(updateTime)
    		defer t.Stop()
    		defer saverWg.Done()
    		var lastSave time.Time
    
    		for {
    			select {
    			case <-t.C:
    				if cache.Info.LastUpdate.Equal(lastSave) {
    					continue
    				}
    				scannerLogOnceIf(ctx, cache.save(ctx, er, dataUsageCacheName), "nsscanner-cache-update")
    				updates <- cache.clone()
    
    				lastSave = cache.Info.LastUpdate
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  9. internal/kms/kes.go

    				return
    			}
    			sameCert := len(certificate.Certificate) == len(prevCertificate.Certificate)
    			for i, b := range certificate.Certificate {
    				if !sameCert {
    					break
    				}
    				sameCert = sameCert && bytes.Equal(b, prevCertificate.Certificate[i])
    			}
    			// Do not reload if its the same cert as before.
    			if !sameCert {
    				client := kes.NewClientWithConfig("", &tls.Config{
    					MinVersion:         tls.VersionTLS12,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle.go

    			// and noncurrent versions when,
    			// - now is past the expected time to action
    			// - expected time to action is the same for both actions
    			if now.After(a.Due) && now.After(b.Due) || a.Due.Equal(b.Due) {
    				switch a.Action {
    				case DeleteAllVersionsAction, DelMarkerDeleteAllVersionsAction,
    					DeleteAction, DeleteVersionAction:
    					return -1
    				}
    				switch b.Action {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top