Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Biggers (0.18 sec)

  1. cmd/utils_test.go

    func TestMaxPartID(t *testing.T) {
    	sizes := []struct {
    		isMax bool
    		partN int
    	}{
    		// Test - 1 part number within max part number.
    		{
    			false,
    			globalMaxPartID - 1,
    		},
    		// Test - 2 part number bigger than max part number.
    		{
    			true,
    			globalMaxPartID + 1,
    		},
    	}
    
    	for i, s := range sizes {
    		isMax := isMaxPartID(s.partN)
    		if isMax != s.isMax {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Feb 23 21:28:14 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. cmd/erasure-decode.go

    		return newBuf, nil
    	}
    
    	readTriggerCh := make(chan bool, len(p.readers))
    	defer xioutil.SafeClose(readTriggerCh) // close the channel upon return
    
    	for i := 0; i < p.dataBlocks; i++ {
    		// Setup read triggers for p.dataBlocks number of reads so that it reads in parallel.
    		readTriggerCh <- true
    	}
    
    	disksNotFound := int32(0)
    	bitrotHeal := int32(0)       // Atomic bool flag.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  3. internal/logger/target/http/http.go

    )
    
    const (
    	// Timeout for the webhook http call
    	webhookCallTimeout = 3 * time.Second
    
    	// maxWorkers is the maximum number of concurrent http loggers
    	maxWorkers = 16
    
    	// maxWorkers is the maximum number of concurrent batch http loggers
    	maxWorkersWithBatchEvents = 4
    
    	// the suffix for the configured queue dir where the logs will be persisted.
    	httpLoggerExtension = ".http.log"
    )
    
    const (
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  4. internal/grid/grid.go

    	// maxBufferSize is the maximum buffer size.
    	// Buffers larger than this is not reused.
    	maxBufferSize = 96 << 10
    
    	// This is the assumed size of bigger buffers and allocation size.
    	biggerBufMin = 32 << 10
    
    	// This is the maximum size of bigger buffers.
    	biggerBufMax = maxBufferSize
    
    	// If there is a queue, merge up to this many messages.
    	maxMergeMessages = 30
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 02 15:56:18 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  5. internal/lock/lock_windows_test.go

    	for _, test := range []struct{ in, want string }{
    		// Short; unchanged:
    		{`C:\short.txt`, `C:\short.txt`},
    		{`C:\`, `C:\`},
    		{`C:`, `C:`},
    		// The "long" substring is replaced by a looooooong
    		// string which triggers the rewriting. Except in the
    		// cases below where it doesn't.
    		{`C:\long\foo.txt`, `\\?\C:\long\foo.txt`},
    		{`C:/long/foo.txt`, `\\?\C:\long\foo.txt`},
    		{`C:\long\foo\\bar\.\baz\\`, `\\?\C:\long\foo\bar\baz`},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  6. cmd/dynamic-timeouts.go

    	dynamicTimeoutLogSize              = 16
    	maxDuration                        = math.MaxInt64
    	maxDynamicTimeout                  = 24 * time.Hour // Never set timeout bigger than this.
    )
    
    // timeouts that are dynamically adapted based on actual usage results
    type dynamicTimeout struct {
    	timeout       int64
    	minimum       int64
    	entries       int64
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Aug 19 23:21:05 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  7. cmd/endpoint-ellipses_test.go

    		args       []string
    		success    bool
    	}{
    		// Invalid input.
    		{"", []string{}, false},
    		// Range cannot be negative.
    		{":9000", []string{"/export1{-1...1}"}, false},
    		// Range cannot start bigger than end.
    		{":9000", []string{"/export1{64...1}"}, false},
    		// Range can only be numeric.
    		{":9000", []string{"/export1{a...z}"}, false},
    		// Duplicate disks not allowed.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 15.2K bytes
    - Viewed (0)
  8. cmd/streaming-signature-v4_test.go

    			errLineTooLong,
    			nil,
    			nil,
    		},
    		// Test - 2 - unexpected end of the reader.
    		{
    			bufio.NewReader(readers[1]),
    			io.ErrUnexpectedEOF,
    			nil,
    			nil,
    		},
    		// Test - 3 - line too long bigger than 4k+1
    		{
    			bufio.NewReader(readers[2]),
    			errLineTooLong,
    			nil,
    			nil,
    		},
    		// Test - 4 - parse the chunk reader properly.
    		{
    			bufio.NewReader(readers[3]),
    			nil,
    			[]byte("1000"),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 5.7K bytes
    - Viewed (0)
  9. cmd/erasure-sets.go

    		disks := make([]StorageAPI, s.setDriveCount)
    		copy(disks, s.erasureDisks[setIndex])
    		return disks
    	}
    }
    
    // defaultMonitorConnectEndpointInterval is the interval to monitor endpoint connections.
    // Must be bigger than defaultMonitorNewDiskInterval.
    const defaultMonitorConnectEndpointInterval = defaultMonitorNewDiskInterval + time.Second*5
    
    // Initialize new set of erasure coded sets.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 37.5K bytes
    - Viewed (5)
  10. internal/dsync/dsync_test.go

    	// These goroutines yield during local work, so that switching from
    	// a blocked goroutine to other goroutines is profitable.
    	// As a matter of fact, this benchmark still triggers some spinning in the mutex.
    	m := NewDRWMutex(ds, "")
    	var acc0, acc1 uint64
    	b.SetParallelism(4)
    	b.RunParallel(func(pb *testing.PB) {
    		c := make(chan bool)
    		var data [4 << 10]uint64
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
Back to top