Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Sum (9.5 sec)

  1. cmd/object-api-listobjects_test.go

    		{testBuckets[0], "unique/folder/1.txt", "content", nil, false},
    		{testBuckets[1], "unique/folder/1.txt", "content", nil, true},
    	}
    	for _, object := range testObjects {
    		md5Bytes := md5.Sum([]byte(object.content))
    		_, err = obj.PutObject(context.Background(), object.parentBucket, object.name, mustGetPutObjReader(t, bytes.NewBufferString(object.content),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		return int64(n), err
    	}
    
    	if _, err = h.Write(buffer); err != nil {
    		return 0, err
    	}
    
    	if _, err = io.Copy(h, file); err != nil {
    		return 0, err
    	}
    
    	if !bytes.Equal(h.Sum(nil), verifier.sum) {
    		return 0, errFileCorrupt
    	}
    
    	return int64(len(buffer)), nil
    }
    
    func (s *xlStorage) openFileDirect(path string, mode int) (f *os.File, err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	hm := hmac.New(sha1.New, []byte(secretAccessKey))
    	hm.Write([]byte(stringToSign))
    
    	// Calculate signature.
    	signature := base64.StdEncoding.EncodeToString(hm.Sum(nil))
    
    	query := req.URL.Query()
    	// Handle specially for Google Cloud Storage.
    	query.Set("AWSAccessKeyId", accessKeyID)
    	// Fill in Expires for presigned query.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  4. internal/s3select/select_test.go

    			wantResult: `{"id":1,"title":"Second Record","desc":"another text","synonyms":["some","synonym","value"]}`,
    		},
    		{
    			name:       "in-expression-with-aggregation",
    			query:      "select SUM(s.id) from s3object s Where 2 in s.numbers[*] or 'some' in s.synonyms[*]",
    			wantResult: `{"_1":3}`,
    		},
    		{
    			name:  "bignum-1",
    			query: `SELECT id from s3object s WHERE s.id <= 9223372036854775807`,
    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)
  5. cmd/xl-storage_test.go

    			h.Write([]byte{0})
    		}
    
    		buffer := make([]byte, test.length)
    		n, err := xlStorage.ReadFile(context.Background(), volume, test.file, int64(test.offset), buffer, NewBitrotVerifier(test.algorithm, h.Sum(nil)))
    
    		switch {
    		case err == nil && test.expError != nil:
    			t.Errorf("Test %d: Expected error %v but got none.", i, test.expError)
    		case err == nil && n != int64(test.length):
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  6. cmd/bucket-handlers.go

    		if err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    
    		// Set the correct hex md5sum for the fan-out stream.
    		fanOutOpts.MD5Hex = hex.EncodeToString(md5w.Sum(nil))
    
    		concurrentSize := 100
    		if runtime.GOMAXPROCS(0) < concurrentSize {
    			concurrentSize = runtime.GOMAXPROCS(0)
    		}
    
    		fanOutResp := make([]minio.PutObjectFanOutResponse, 0, len(fanOutEntries))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
Back to top