Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for Zero (0.45 sec)

  1. internal/lock/lock.go

    var ErrAlreadyLocked = errors.New("file already locked")
    
    // RLockedFile represents a read locked file, implements a special
    // closer which only closes the associated *os.File when the ref count.
    // has reached zero, i.e when all the readers have given up their locks.
    type RLockedFile struct {
    	*LockedFile
    	mutex sync.Mutex
    	refs  int // Holds read lock refs.
    }
    
    // IsClosed - Check if the rlocked file is already closed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  2. internal/grid/types.go

    		pool: sync.Pool{
    			New: func() interface{} {
    				var t T
    				return &t
    			},
    		},
    		emptySz: sz,
    	}
    }
    
    func (p *JSONPool[T]) new() *T {
    	var zero T
    	t := p.pool.Get().(*T)
    	*t = zero
    	return t
    }
    
    // JSON is a wrapper around a T object that can be serialized.
    // There is an internal value
    type JSON[T any] struct {
    	p   *JSONPool[T]
    	val *T
    }
    
    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)
  3. docs/throttle/README.md

    export MINIO_ROOT_PASSWORD=your-secret-key
    minio server http://server{1...8}/mnt/hdd{1...16}
    ```
    
    or
    
    ```sh
    mc admin config set myminio/ api requests_max=1600
    mc admin service restart myminio/
    ```
    
    > NOTE: A zero value of `requests_max` means MinIO will automatically calculate requests based on available RAM size and that is the default behavior.
    
    ### Configuring connection (wait) deadline
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Feb 12 00:51:25 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  4. docs/debugging/xattr/main.go

    	flag.BoolVar(&set, "set", false, "this is a set attribute operation")
    
    	flag.Parse()
    
    	if set && value == 0 {
    		log.Fatalln("setting an attribute requires a non-zero value")
    	}
    
    	if !set && value > 0 {
    		log.Fatalln("to set a value please specify --set along with --value")
    	}
    
    	table := tablewriter.NewWriter(os.Stdout)
    	table.SetHeader([]string{"Name", "Value"})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 29 23:52:41 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. cmd/untar.go

    						return
    					}
    					asyncErrMu.Lock()
    					if asyncErr == nil {
    						asyncErr = err
    					}
    					asyncErrMu.Unlock()
    				}
    			}(name, header.FileInfo(), b)
    			continue
    		}
    
    		// If zero or earlier modtime, set to current.
    		// Otherwise the resulting objects will be invalid.
    		if header.ModTime.UnixNano() <= 0 {
    			header.ModTime = time.Now()
    		}
    
    		// Sync upload.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  6. cmd/metacache-stream_test.go

    t.wb.expect", "src/compress/flate/testdata/huffman-text.wb.expect-noinput", "src/compress/flate/testdata/huffman-zero.dyn.expect", "src/compress/flate/testdata/huffman-zero.dyn.expect-noinput", "src/compress/flate/testdata/huffman-zero.golden", "src/compress/flate/testdata/huffman-zero.in", "src/compress/flate/testdata/huffman-zero.wb.expect", "src/compress/flate/testdata/huffman-zero.wb.expect-noinput", "src/compress/flate/testdata/null-long-match.dyn.expect-noinput", "src/compress/flate/testda...
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  7. internal/s3select/sql/value_test.go

    			panic(err)
    		}
    		return FromTimestamp(t)
    	},
    	func() *Value {
    		return FromString("string contents")
    	},
    }
    
    // altValueBuilders contains one constructor for each value type.
    // Values are zero values and should NOT match the values in valueBuilders, except Null type.
    var altValueBuilders = []func() *Value{
    	FromNull,
    	func() *Value {
    		return FromBool(false)
    	},
    	func() *Value {
    		return FromBytes(nil)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  8. cmd/bitrot.go

    	"golang.org/x/crypto/blake2b"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/logger"
    )
    
    // magic HH-256 key as HH-256 hash of the first 100 decimals of π as utf-8 string with a zero key.
    var magicHighwayHash256Key = []byte("\x4b\xe7\x34\xfa\x8e\x23\x8a\xcd\x26\x3e\x83\xe6\xbb\x96\x85\x52\x04\x0f\x93\x5d\xa3\x9f\x44\x14\x97\xe0\x9d\x13\x22\xde\x36\xa0")
    
    var bitrotAlgorithms = map[BitrotAlgorithm]string{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  9. internal/grid/msg.go

    //
    //msgp:tuple message
    type message struct {
    	MuxID      uint64    // Mux to receive message if any.
    	Seq        uint32    // Sequence number.
    	DeadlineMS uint32    // If non-zero, milliseconds until deadline (max 1193h2m47.295s, ~49 days)
    	Handler    HandlerID // ID of handler if invoking a remote handler.
    	Op         Op        // Operation. Other fields change based on this value.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 28 19:22:29 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  10. docs/debugging/xl-meta/main.go

    // and perform a callback for each version in order, newest first.
    // Any non-nil error is returned.
    func decodeVersions(buf []byte, versions int, fn func(idx int, hdr, meta []byte) error) (err error) {
    	var tHdr, tMeta []byte // Zero copy bytes
    	for i := 0; i < versions; i++ {
    		tHdr, buf, err = msgp.ReadBytesZC(buf)
    		if err != nil {
    			return err
    		}
    		tMeta, buf, err = msgp.ReadBytesZC(buf)
    		if err != nil {
    			return err
    		}
    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)
Back to top