Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 129 for Equals (0.14 sec)

  1. internal/hash/checksum.go

    	if len(c.Encoded) == 0 {
    		return nil
    	}
    	hasher := c.Type.Hasher()
    	_, err := hasher.Write(content)
    	if err != nil {
    		return err
    	}
    	sum := hasher.Sum(nil)
    	if !bytes.Equal(sum, c.Raw) {
    		return ChecksumMismatch{
    			Want: c.Encoded,
    			Got:  base64.StdEncoding.EncodeToString(sum),
    		}
    	}
    	return nil
    }
    
    // AsMap returns the
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. internal/s3select/sql/parser_test.go

    	if err != nil {
    		t.Fatalf("parse alias sql error: %v", err)
    	}
    	if exp.selectAST.Expression.Expressions[2].As != "mytest" {
    		t.Fatalf("parse alias sql error: %s not equal %s", exp.selectAST.Expression.Expressions[2].As, err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. cmd/object_api_suite_test.go

    		var byteBuffer bytes.Buffer
    		err = GetObject(context.Background(), obj, "bucket", key, 0, int64(len(value)), &byteBuffer, "", opts)
    		if err != nil {
    			t.Fatalf("%s: <ERROR> %s", instanceType, err)
    		}
    		if !bytes.Equal(byteBuffer.Bytes(), value) {
    			t.Errorf("%s: Mismatch of GetObject data with the expected one.", instanceType)
    		}
    
    		objInfo, err := obj.GetObjectInfo(context.Background(), "bucket", key, opts)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  6. cmd/handler-utils.go

    		metadata[strings.ToLower(xhttp.ContentType)] = "binary/octet-stream"
    	}
    
    	// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w
    	for k := range metadata {
    		if equals(k, xhttp.AmzMetaUnencryptedContentLength, xhttp.AmzMetaUnencryptedContentMD5) {
    			delete(metadata, k)
    		}
    	}
    
    	if contentEncoding, ok := metadata[strings.ToLower(xhttp.ContentEncoding)]; ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  7. internal/s3select/select_test.go

    			wantResult: ``,
    		},
    		{
    			name:       "indexed-list-match-equals",
    			query:      `SELECT * from s3object s WHERE (7,8.5,9) = s.nested[1]`,
    			wantResult: `{"id":3,"title":"Second Record","desc":"another text","nested":[[2,3,4],[7,8.5,9]]}`,
    		},
    		{
    			name:       "indexed-list-match-equals-s-star",
    			query:      `SELECT s.* from s3object s WHERE (7,8.5,9) = s.nested[1]`,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    	for k, v := range oi.UserDefined {
    		if stringsHasPrefixFold(k, ReservedMetadataPrefixLower) {
    			continue
    		}
    
    		if equals(k, xhttp.AmzBucketReplicationStatus) {
    			continue
    		}
    
    		// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w
    		if equals(k, xhttp.AmzMetaUnencryptedContentLength, xhttp.AmzMetaUnencryptedContentMD5) {
    			continue
    		}
    		meta[k] = v
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  9. cmd/api-response.go

    			// values to client.
    			toRemove = append(toRemove, k)
    			continue
    		}
    
    		// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w
    		if equals(k, xhttp.AmzMetaUnencryptedContentLength, xhttp.AmzMetaUnencryptedContentMD5) {
    			toRemove = append(toRemove, k)
    			continue
    		}
    	}
    
    	for _, k := range toRemove {
    		delete(m, k)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  10. cmd/site-replication.go

    	}
    	if !currDeploymentIDsSet.IsEmpty() {
    		// If current cluster is already SR enabled and no new site being added ,fail.
    		if currDeploymentIDsSet.Equals(deploymentIDsSet) {
    			return madmin.ReplicateAddStatus{}, errSRCannotJoin
    		}
    		if len(currDeploymentIDsSet.Intersection(deploymentIDsSet)) != len(currDeploymentIDsSet) {
    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