Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 50 for calling (0.46 sec)

  1. cmd/metacache-stream.go

    			current.Last = o.name
    		}
    		if n > 0 || current.n == 0 {
    			current.EOS = true
    			finishBlock()
    		}
    	}()
    	return &w
    }
    
    // Close the stream.
    // The incoming channel must be closed before calling this.
    // Returns the first error the occurred during the writing if any.
    func (w *metacacheBlockWriter) Close() error {
    	w.wg.Wait()
    	return w.streamErr
    }
    
    type metacacheBlock struct {
    	data  []byte
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2.go

    // values such as ErasureInfo, ChecksumInfo.
    //
    // Metadata is only updated to new values, existing values
    // stay as is, if you wish to update all values you should
    // update all metadata freshly before calling this function
    // in-case you wish to clear existing metadata.
    func (x *xlMetaV2) UpdateObjectVersion(fi FileInfo) error {
    	if fi.VersionID == "" {
    		// this means versioning is not yet
    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)
  3. cmd/utils_test.go

    	cases := []struct {
    		numerator, denominator, ceiling int64
    	}{
    		{0, 1, 0},
    		{-1, 2, 0},
    		{1, 2, 1},
    		{1, 1, 1},
    		{3, 2, 2},
    		{54, 11, 5},
    		{45, 11, 5},
    		{-4, 3, -1},
    		{4, -3, -1},
    		{-4, -3, 2},
    		{3, 0, 0},
    	}
    	for i, testCase := range cases {
    		ceiling := ceilFrac(testCase.numerator, testCase.denominator)
    		if ceiling != testCase.ceiling {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 23 21:28:14 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  4. cmd/bucket-metadata-sys.go

    		delete(sys.metadataMap, bucket)
    		globalBucketMonitor.DeleteBucket(bucket)
    	}
    }
    
    // Set - sets a new metadata in-memory.
    // Only a shallow copy is saved and fields with references
    // cannot be modified without causing a race condition,
    // so they should be replaced atomically and not appended to, etc.
    // Data is not persisted to disk.
    func (sys *BucketMetadataSys) Set(bucket string, meta BucketMetadata) {
    	if !isMinioMetaBucketName(bucket) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  5. cmd/postpolicyform.go

    // Add policy conditionals.
    const (
    	policyCondEqual         = "eq"
    	policyCondStartsWith    = "starts-with"
    	policyCondContentLength = "content-length-range"
    )
    
    // toString - Safely convert interface to string without causing panic.
    func toString(val interface{}) string {
    	switch v := val.(type) {
    	case string:
    		return v
    	default:
    		return ""
    	}
    }
    
    // toLowerString - safely convert interface to lower string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  6. internal/ioutil/ioutil.go

    	if fi1.Mode() != fi2.Mode() {
    		return false
    	}
    	return fi1.Size() == fi2.Size()
    }
    
    // DirectioAlignSize - DirectIO alignment needs to be 4K. Defined here as
    // directio.AlignSize is defined as 0 in MacOS causing divide by 0 error.
    const DirectioAlignSize = 4096
    
    // CopyAligned - copies from reader to writer using the aligned input
    // buffer, it is expected that input buffer is page aligned to
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  7. cmd/utils.go

    		TCPOptions:       globalTCPOptions,
    		EnableHTTP2:      false,
    	}.NewRemoteTargetHTTPTransport(insecure)
    }
    
    // ceilFrac takes a numerator and denominator representing a fraction
    // and returns its ceiling. If denominator is 0, it returns 0 instead
    // of crashing.
    func ceilFrac(numerator, denominator int64) (ceil int64) {
    	if denominator == 0 {
    		// do nothing on invalid input
    		return
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  8. cmd/xl-storage_test.go

    	reader := bytes.NewReader(data)
    	for {
    		// Using io.Copy instead of this loop will not work for us as io.Copy
    		// will use bytes.Reader.WriteTo() which will not do shardSize'ed writes
    		// causing error.
    		n, err := reader.Read(shard)
    		w.Write(shard[:n])
    		if err == nil {
    			continue
    		}
    		if err == io.EOF {
    			break
    		}
    		t.Fatal(err)
    	}
    	w.(io.Closer).Close()
    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)
  9. internal/logger/logger.go

    	sendLog(ctx, entry)
    }
    
    // ErrCritical is the value panic'd whenever CriticalIf is called.
    var ErrCritical struct{}
    
    // CriticalIf logs the provided error on the console. It fails the
    // current go-routine by causing a `panic(ErrCritical)`.
    func CriticalIf(ctx context.Context, err error, errKind ...interface{}) {
    	if err != nil {
    		LogIf(ctx, "", err, errKind...)
    		panic(ErrCritical)
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  10. CREDITS

          means any form of electronic, verbal, or written communication sent
          to the Licensor or its representatives, including but not limited to
          communication on electronic mailing lists, source code control systems,
          and issue tracking systems that are managed by, or on behalf of, the
          Licensor for the purpose of discussing and improving the Work, but
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:31:35 GMT 2024
    - 1.6M bytes
    - Viewed (0)
Back to top