Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 86 for rack (0.14 sec)

  1. internal/hash/checksum.go

    	return NewChecksumWithType(NewChecksumType(alg), value)
    }
    
    // AppendTo will append the checksum to b.
    // 'parts' is used when checksum has ChecksumMultipart set.
    // ReadCheckSums reads the values back.
    func (c *Checksum) AppendTo(b []byte, parts []byte) []byte {
    	if c == nil {
    		return nil
    	}
    	var tmp [binary.MaxVarintLen32]byte
    	n := binary.PutUvarint(tmp[:], uint64(c.Type))
    	crc := c.Raw
    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. cmd/server_test.go

    }
    
    // TestBucketPolicy - Inserts the bucket policy and verifies it by fetching the policy back.
    // Deletes the policy and verifies the deletion by fetching it back.
    func (s *TestSuiteCommon) TestBucketPolicy(c *check) {
    	// Sample bucket policy.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    			}
    		}
    		// Track total bytes read from disk and written to the client.
    		totalBytesRead += partLength
    		// partOffset will be valid only for the first part, hence reset it to 0 for
    		// the remaining parts.
    		partOffset = 0
    	} // End of read all parts loop.
    	// Return success.
    	return nil
    }
    
    // GetObjectInfo - reads object metadata and replies back ObjectInfo.
    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)
  4. internal/grid/types.go

    func (b *Bytes) Msgsize() int {
    	if b == nil || *b == nil {
    		return msgp.NilSize
    	}
    	return msgp.ArrayHeaderSize + len(*b)
    }
    
    // Recycle puts the Bytes back into the pool.
    func (b *Bytes) Recycle() {
    	if b != nil && *b != nil {
    		*b = (*b)[:0]
    		PutByteBuffer(*b)
    		*b = nil
    	}
    }
    
    // URLValues can be used for url.Values.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. docs/debugging/xl-meta/main.go

    		}
    		if len(key) == 0 {
    			return fmt.Errorf("xlMetaInlineData: key %d is length 0", i)
    		}
    		// Read data...
    		val, buf, err = msgp.ReadBytesZC(buf)
    		if err != nil {
    			return err
    		}
    		// Call back.
    		fn(string(key), val)
    	}
    	return nil
    }
    
    const (
    	xlHeaderVersion = 3
    	xlMetaVersion   = 2
    )
    
    type xlHeaders struct {
    	versions           int
    	headerVer, metaVer uint
    }
    
    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)
  6. internal/s3select/sql/value.go

    // values do not have types (e.g. when reading from CSV), for
    // comparison operations, automatic type conversion happens by trying
    // to check if the value is a number (first an integer, then a float),
    // and falling back to string.
    func (v *Value) compareOp(op string, a *Value) (res bool, err error) {
    	if !isValidComparisonOperator(op) {
    		return false, errArithInvalidOperator
    	}
    	switch op {
    	case opIs:
    		if a.IsNull() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  7. cmd/xl-storage-disk-id-check.go

    // Once the disk has been deemed ok, it will return to online status.
    func (p *xlStorageDiskIDCheck) monitorDiskWritable(ctx context.Context) {
    	var (
    		// We check every 15 seconds if the disk is writable and we can read back.
    		checkEvery = 15 * time.Second
    
    		// If the disk has completed an operation successfully within last 5 seconds, don't check it.
    		skipIfSuccessBefore = 5 * time.Second
    	)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  8. cmd/object-multipart-handlers.go

    		// Note that url.Parse does the unescaping
    		cpSrcPath = u.Path
    	}
    
    	srcBucket, srcObject := path2BucketObject(cpSrcPath)
    	// If source object is empty or bucket is empty, reply back invalid copy source.
    	if srcObject == "" || srcBucket == "" {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidCopySource), r.URL)
    		return
    	}
    
    	if vid != "" && vid != nullVersionID {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    		if idx < 0 {
    			return -1, toObjectErr(errDiskFull)
    		}
    	}
    
    	return idx, nil
    }
    
    // getPoolIdx returns the found previous object and its corresponding pool idx,
    // if none are found falls back to most available space pool, this function is
    // designed to be only used by PutObject, CopyObject (newObject creation) and NewMultipartUpload.
    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)
  10. cmd/erasure-object_test.go

    			ObjectOptions{Versioned: testCase.versioned})
    		if err != nil {
    			t.Fatalf("Test %d: Failed to upload the final object: %v", i+1, err)
    		}
    
    		// Step 4: Try to read the object back and check its md5sum
    		sets.erasureDisksMu.Lock()
    		xl.getDisks = func() []StorageAPI { return origErasureDisks }
    		sets.erasureDisksMu.Unlock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
Back to top